Files
sx-fc/spec/views/settings/membership_actions/show.html.erb_spec.rb
2017-06-08 17:57:29 +06:30

29 lines
1021 B
Ruby

require 'rails_helper'
RSpec.describe "settings/membership_actions/show", type: :view do
before(:each) do
@settings_membership_action = assign(:settings_membership_action, Settings::MembershipAction.create!(
:membership_type => "Membership Type",
:is_active => false,
:gateway_communication_type => "Gateway Communication Type",
:gateway_url => "Gateway Url",
:auth_token => "Auth Token",
:merchant_account_id => "Merchant Account",
:created_by => "Created By",
:additional_parameter => "Additional Parameter"
))
end
it "renders attributes in <p>" do
render
expect(rendered).to match(/Membership Type/)
expect(rendered).to match(/false/)
expect(rendered).to match(/Gateway Communication Type/)
expect(rendered).to match(/Gateway Url/)
expect(rendered).to match(/Auth Token/)
expect(rendered).to match(/Merchant Account/)
expect(rendered).to match(/Created By/)
expect(rendered).to match(/Additional Parameter/)
end
end