Skip to content
forked from jmondo/orderly

Orderly gem for asserting that some text (this) appears before other text (that) in rspec request specs

License

Notifications You must be signed in to change notification settings

wzcolon/orderly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orderly

Rspec matcher for asserting that this appears_before(that) in rspec request specs

Installation

Add this line to your application's Gemfile:

gem 'orderly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install orderly

Usage

In an rspec request spec, do

this.should appear_before(that)
# or
expect(this).to appear_before(that)

or, to assert that something does not appear before

this.should_not appear_before(that)
# or
expect(this).to_not appear_before(that)

Error handling in place for cases where this or that does not appear on the page.

Contributing

Patches welcome! Submit a pull request.

About

Orderly gem for asserting that some text (this) appears before other text (that) in rspec request specs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%