spec/macros4cuke/macro-step_spec.rb in macros4cuke-0.2.01 vs spec/macros4cuke/macro-step_spec.rb in macros4cuke-0.2.02
- old
+ new
@@ -47,9 +47,19 @@
end # context
context "Provided services" do
it "should render the substeps" do
+ text = subject.expand({'userid' => 'nobody', 'password' => 'no-secret'})
+ expectation = <<-SNIPPET
+ Given I landed in the homepage
+ When I click "Sign in"
+ And I fill in "Username" with "nobody"
+ And I fill in "Password" with "no-secret"
+ And I click "Submit"
+SNIPPET
+
+ text.should == expectation
end
end # context
end # describe
\ No newline at end of file