diff --git a/Rakefile b/Rakefile index 22162469d..75e60a345 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,8 @@ # This Rakefile has all the right settings to run the tests inside each lab -gem 'rspec', '~>2' + +# Little file edition to use RSpec 3.0.0 version ( last ) +gem 'rspec', '~>3' # Use '~>2' to downgrade + require 'rspec/core/rake_task' task :default => :spec diff --git a/index.html b/index.html index 9e4c3dcf6..ab6dbbb2e 100644 --- a/index.html +++ b/index.html @@ -121,7 +121,7 @@

Problems? Questions?

  • Include version numbers:

     $ ruby -v
    - ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
    + ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
     
  • Note where you have already looked for an answer

  • If you can, include code snippets that reproduce the problem in isolation
  • diff --git a/rspec_config.rb b/rspec_config.rb index fbc53440c..3e1d4c483 100644 --- a/rspec_config.rb +++ b/rspec_config.rb @@ -1,4 +1,11 @@ -RSpec.configure do |c| - c.fail_fast = true - c.color = true -end +RSpec.configure do |config| + config.fail_fast = true + config.color = true + + # Modified to deactivate warnings about :should syntax + config.expect_with :rspec do |c| + + # Let´s use two syntaxs inside our tests + c.syntax = [:should, :expect] + end +end \ No newline at end of file