save_and_open_page
have_button(locator)| ### blogged @ http://dojo4.com/blog/easy-cheasy-realtime-log-tailing-in-a-rails-admin-view | |
| ### the su controller action | |
| def logs | |
| log = File.join(Rails.root, "log", "#{ Rails.env }.log") | |
| @lines = `tail -1024 #{ log }`.split(/\n/).reverse |
| # RSpec matcher for alias_method. | |
| # https://gist.github.com/1950961 | |
| # Usage: | |
| # | |
| # describe User do | |
| # it { should alias_from(:username).to(:email) } | |
| # end | |
| RSpec::Matchers.define :alias_from do |alias_method| |