Skip to content

Commit

Permalink
Final linkage between rspec and cucumber. Included true and false tes…
Browse files Browse the repository at this point in the history
…ts to show should and should_not work correctly
  • Loading branch information
Deryl R. Doucette committed Feb 8, 2012
1 parent 94018af commit 875b84c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .gems
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
# .gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator
archive-tar-minitar -v0.5.2
autotest -v4.4.6
bacon -v1.1.0
builder -v3.0.0
columnize -v0.3.6
cucumber -v1.1.4
diff-lcs -v1.1.3
eventmachine -v0.12.10
freeswitcher -v0.7.1
freeswitcher -v0.7.0
freeswitcher -v0.6.18
gherkin -v2.7.7
gherkin -v2.7.6
gherkin -v2.7.3
gist -v2.0.4
json -v1.6.5
json -v1.6.4
linecache19 -v0.5.12
log4r -v1.1.10
nokogiri -v1.5.0
rack -v1.4.1
rack -v1.4.0
rack-test -v0.6.1
rake -v0.9.2.2
rspec -v2.8.0
rspec-core -v2.8.0
rspec-expectations -v2.8.0
rspec-mocks -v2.8.0
ruby-debug-base19 -v0.11.25
ruby-debug19 -v0.11.6
ruby_core_source -v0.1.5
term-ansicolor -v1.0.7
webrat -v0.7.3
ZenTest -v4.6.2
5 changes: 4 additions & 1 deletion features/000_phone_infrastructure.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ Feature: Establish that phone infrastructure is working
Background:
Given I have 2 servers named blackbird.rubyists.com and tigershark.rubyists.com

Scenario: Show that True and False express correctly, and exactly, with should and should_not
Then true.should == true
And false.should != true

Scenario:
When I make a phone call
Then I should be able to terminate the call
And I should see false

8 changes: 6 additions & 2 deletions features/step_definitions/steps.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
And /^I should see false$/ do
true.should == "false"
And /^true.should == true$/ do
true.should == true
end

And /^false.should != true$/ do
false.should_not == true
end

When /^I make a phone call$/ do
Expand Down
3 changes: 1 addition & 2 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require "fsr/command_socket"
require "fsr/listener/inbound"

# Require Bacon for specs
require 'bacon'
require 'rspec'

FSR.load_all_commands

0 comments on commit 875b84c

Please sign in to comment.