payment_setting

This commit is contained in:
Moe Su
2017-06-08 17:57:29 +06:30
parent b57e24c076
commit 74b0550c30
46 changed files with 960 additions and 22 deletions

View File

@@ -0,0 +1,28 @@
require 'rails_helper'
RSpec.describe "membership_actions/show", type: :view do
before(:each) do
@membership_action = assign(:membership_action, 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 => ""
))
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(//)
end
end