Skip to content

Commit 09305aa

Browse files
committed
Move title check last so the rspec example number corresponds to the tutorial step
1 parent 452225d commit 09305aa

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

spec/tutorial_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616

1717
dataset = language_dataset(language)
1818

19-
it "displays a correct title on the first page of the tutorial" do
20-
page.should have_content(dataset["1"]["title"])
21-
the_cookie_of_step.should be == 1
22-
end
23-
2419
steps = {
2520
1 => {pass: true},
2621
12 => {code: "[12, 47, 35, 1]"},
@@ -80,6 +75,11 @@
8075
end
8176
end
8277
end
78+
79+
it "displays a correct title on the first page of the tutorial" do
80+
page.should have_content(dataset["1"]["title"])
81+
the_cookie_of_step.should be == 1
82+
end
8383
end
8484
end
8585
end

0 commit comments

Comments
 (0)