Skip to content

Commit 25a160b

Browse files
committed
moving shared steps to correct fie
1 parent fd29511 commit 25a160b

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
Given /^I have a magic number$/ do
2-
@input = <<-DOC
3-
class Foo
4-
def bar
5-
"some magic number"
6-
end
1+
Given /^I have the following code:$/ do |code|
2+
@input = code
73
end
8-
DOC
4+
5+
When /^I fill in the parameter "([^"]*)"$/ do |parameter|
6+
add_to_commands(parameter)
7+
end
8+
9+
Then /^I should see:$/ do |result|
10+
result_of_executing_the_commands.should == result
911
end

features/support/shared_methods.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,3 @@ def commands
2929
def add_return_key
3030
@commands << return_key
3131
end
32-
33-
Given /^I have the following code:$/ do |code|
34-
@input = code
35-
end
36-
37-
When /^I fill in the parameter "([^"]*)"$/ do |parameter|
38-
add_to_commands(parameter)
39-
end
40-
41-
Then /^I should see:$/ do |result|
42-
result_of_executing_the_commands.should == result
43-
end

0 commit comments

Comments
 (0)