Sha256: c2add19c2f32c1f18bef3dec57927c5b744cc4fbb71804ddaa63fe3b1296b050
Contents?: true
Size: 679 Bytes
Versions: 3
Compression:
Stored size: 679 Bytes
Contents
def valid_signin(user) Factory(:group) fill_in "inputEmail", :with => user.email fill_in "inputPassword", :with => user.password click_button "signin-button" end RSpec::Matchers::define :have_title do |text| match do |page| Capybara.string(page.body).has_selector?('title', :text => text) end end def clean_uploads_folder FileUtils.rm_rf(Dir["#{Rails.root}/public/uploads/."]) end RSpec::Matchers.define(:have_image) do |src| match { |node| node.has_selector? %(img[src="#{src}"]) } failure_message_for_should do "Expected an image with src #{src.inspect}" end failure_message_for_should_not do "Found image with src #{src.inspect}!" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-1.2.12 | spec/support/helper_methods.rb |
adminpanel-1.2.11 | spec/support/helper_methods.rb |
adminpanel-1.2.10 | spec/support/helper_methods.rb |