change to more explicit pending message
This commit is contained in:
parent
4da53be6af
commit
21040cbe74
|
@ -148,17 +148,11 @@ feature "Signing up" do
|
||||||
end
|
end
|
||||||
click_link 'Sign in'
|
click_link 'Sign in'
|
||||||
end
|
end
|
||||||
|
|
||||||
xscenario "Signing out" do
|
|
||||||
# this test is pending
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
`feature` is in fact just an alias for `describe ..., :type => :request`,
|
`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.
|
`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
|
## Using Capybara with Test::Unit
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ module Capybara
|
||||||
base.instance_eval do
|
base.instance_eval do
|
||||||
alias :background :before
|
alias :background :before
|
||||||
alias :scenario :it
|
alias :scenario :it
|
||||||
alias :xscenario :pending
|
alias_example_to :xscenario, :pending => "temporarily disabled with xscenario"
|
||||||
alias :given :let
|
alias :given :let
|
||||||
alias :given! :let!
|
alias :given! :let!
|
||||||
end
|
end
|
||||||
|
|
|
@ -51,7 +51,7 @@ feature "given and given! aliases to let and let!" do
|
||||||
end
|
end
|
||||||
|
|
||||||
feature "if xscenario aliases to pending then" do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue