Advertisement
Guest User

Untitled

a guest
Mar 26th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. require "rails_helper"
  2.  
  3. RSpec.feature "Send a message" do
  4. scenario "Staff can send a message" do
  5. visit "/"
  6.  
  7. group = Group.create!(name: "Group A")
  8. user = User.create!(email: "staff@example.com", password: "password")
  9. fill_in "Email", with: "staff@example.com"
  10. fill_in "Password", with: "password"
  11. click_button "Sign in"
  12.  
  13. fill_in "Enter a Message:", with: "Test Message"
  14. check("message_group_#{group.id}")
  15. click_button "Send Message"
  16.  
  17.  
  18. expect(page).to have_content("Messages on their way!")
  19. end
  20.  
  21. Send a message Staff can send a message
  22. Failure/Error: expect(page).to have_content("Messages on their way!")
  23. expected to find text "Messages on their way!" in "Tulip Time Text Numbers Sent Messages Scheduled Messages Statistics staff@example.com Logout SMS Notifications Use this form to send SMS notifications to Visitors, Staff or Volunteers. Enter a Message: Groups: Group A Scheduled Text Message:"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement