change to more explicit pending message

This commit is contained in:
Kori Roys 2012-10-26 12:06:30 -05:00
parent 4da53be6af
commit 21040cbe74
3 changed files with 2 additions and 8 deletions

View File

@ -148,17 +148,11 @@ feature "Signing up" do
end
click_link 'Sign in'
end
xscenario "Signing out" do
# this test is pending
end
end
```
`feature` is in fact just an alias for `describe ..., :type => :request`,
`background` is an alias for `before`, `scenario` for `it`, and `given`/`given!` aliases for `let`/`let!`, respectively.
`xscenario` is an alias for `pending`, allowing you to temporarily disable a test.
## Using Capybara with Test::Unit

View File

@ -4,7 +4,7 @@ module Capybara
base.instance_eval do
alias :background :before
alias :scenario :it
alias :xscenario :pending
alias_example_to :xscenario, :pending => "temporarily disabled with xscenario"
alias :given :let
alias :given! :let!
end

View File

@ -51,7 +51,7 @@ feature "given and given! aliases to let and let!" do
end
feature "if xscenario aliases to pending then" do
xscenario "this test should be pending" do
xscenario "this test should be 'temporarily disabled with xscenario'" do
end
end