Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It´s modified to use RSpect 3.0.0 version (last) and two syntax ( ":should" & ":expect" ) inside our test #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h1>Problems? Questions?</h1>
<li><p>Include version numbers:</p>

<pre><code> $ 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]
</code></pre></li>
<li><p>Note where you have already looked for an answer</p></li>
<li>If you can, include code snippets that reproduce the problem in isolation</li>
Expand Down
15 changes: 11 additions & 4 deletions rspec_config.rb
Original file line number Diff line number Diff line change
@@ -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