Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed duplication from example #1

Merged
merged 1 commit into from Dec 30, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 14 additions & 14 deletions spec/example_steps_spec.rb
Expand Up @@ -36,23 +36,23 @@

describe "Steps without blocks" do
Steps "they should be pending" do
Given "given step without block"
Then "then step without block"
When "when step without block"
Given "step without block"
Then "step without block"
When "step without block"
end
end

describe "Steps with :pending option" do
Steps "they should be pending when :pending => true" do
Given "given step with :pending option", :pending => true do
Given "step with :pending option", :pending => true do
raise "Should not be evaluated"
end

When "when step with :pending option", :pending => true do
When "step with :pending option", :pending => true do
raise "Should not be evaluated"
end

Then "then step with :pending option", :pending => true do
Then "step with :pending option", :pending => true do
raise "Should not be evaluated"
end

Expand All @@ -66,33 +66,33 @@
end

Steps "they should be pending when :pending => STRING" do
Given "given step with :pending option", :pending => "WIP" do
Given "step with :pending option", :pending => "WIP" do
raise "Should not be evaluated"
end

When "when step with :pending option", :pending => "POSTPONED" do
When "step with :pending option", :pending => "POSTPONED" do
raise "Should not be evaluated"
end

Then "then step with :pending option", :pending => "DELAYED" do
Then "step with :pending option", :pending => "DELAYED" do
raise "Should not be evaluated"
end
end

Steps "they should NOT be pending when :pending => false" do
Given "given step with :pending option", :pending => false do
Given "step with :pending option", :pending => false do
end

When "when step with :pending option", :pending => false do
When "step with :pending option", :pending => false do
end

Then "then step with :pending option", :pending => false do
Then "step with :pending option", :pending => false do
end

And "and step with :pending option", :pending => false do
And "step with :pending option", :pending => false do
end

But "and step with :pending option", :pending => false do
But "step with :pending option", :pending => false do
end
end
end
Expand Down