Sha256: b91e95bfdf374cc678d2144215b3464374b76e61b81727829b8b00891cbf8cc7

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

require "test_helper"

module Workarea
  class MailChimp::SubscriptionTest < Workarea::IntegrationTest
    def test_unsubscribe
      set_current_user(
        create_user(email: "bcrouse@workarea.com", password: "w3bl1nc", email_signup: true)
      )

      patch storefront.users_account_path, params: { email_signup: false }
      refute(Email.signed_up?("bcrouse@workarea.com"))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-mail_chimp-3.1.0 test/integration/workarea/mailchimp/unsubscribe_test.rb
workarea-mail_chimp-3.0.5 test/integration/workarea/mailchimp/unsubscribe_test.rb
workarea-mail_chimp-3.0.4 test/integration/workarea/mailchimp/unsubscribe_test.rb
workarea-mail_chimp-3.0.3 test/integration/workarea/mailchimp/unsubscribe_test.rb
workarea-mail_chimp-3.0.2 test/integration/workarea/mailchimp/unsubscribe_test.rb