Module: PermalinkFu::Spec::Matchers
- Defined in:
- lib/permalink_fu/spec/matchers.rb
Defined Under Namespace
Classes: PermalinkTo
Instance Method Summary collapse
-
#permalink_to(*args) ⇒ Object
Provides a matcher for nicer specs: describe Article do it “has a permalink” do Article.create(:title => ‘Lorem ipsum’).should permalink_to(‘lorem-ipsum’) end end.
Instance Method Details
#permalink_to(*args) ⇒ Object
Provides a matcher for nicer specs:
describe Article do
it "has a permalink" do
Article.create(:title => 'Lorem ipsum').should permalink_to('lorem-ipsum')
end
end
38 39 40 |
# File 'lib/permalink_fu/spec/matchers.rb', line 38 def permalink_to(*args) PermalinkTo.new(*args) end |