module Gaku::Testing::FlashHelpers
Public Instance Methods
flash?(text)
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 3 def flash?(text) page.should have_selector('#notice', text: text) end
flash_created?()
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 7 def flash_created? flash? 'successfully created' end
flash_destroyed?()
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 15 def flash_destroyed? flash? 'successfully destroyed' end
flash_error_for(field)
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 27 def flash_error_for(field) page.should have_selector("div.#{field}formError") end
flash_recovered?()
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 19 def flash_recovered? flash? 'successfully recovered' end
flash_updated?()
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 11 def flash_updated? flash? 'successfully updated' end
flash_uploaded?()
click to toggle source
# File lib/gaku/testing/flash_helpers.rb, line 23 def flash_uploaded? flash? 'successfully uploaded' end