File tree Expand file tree Collapse file tree 2 files changed +9
-19
lines changed Expand file tree Collapse file tree 2 files changed +9
-19
lines changed Original file line number Diff line number Diff line change 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
7
3
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
9
11
end
Original file line number Diff line number Diff line change @@ -29,15 +29,3 @@ def commands
29
29
def add_return_key
30
30
@commands << return_key
31
31
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
You can’t perform that action at this time.
0 commit comments