Sha256: 58371b4a4a6b778716c829fbc746d5467c68740f87bbaed2c301f319195865ff

Contents?: true

Size: 340 Bytes

Versions: 3

Compression:

Stored size: 340 Bytes

Contents

require 'spec_helper'
require 'rails_multitenant/rspec'

describe "be_multitenant_on matcher" do
  it "accepts a valid context field id" do
    expect(ExternalItem).to be_multitenant_on(:external_organization_id)
  end

  it "rejects an invalid context field id" do
    expect(ExternalItem).not_to be_multitenant_on(:other_field)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_multitenant-0.3.1 spec/be_multitenant_on_matcher_spec.rb
rails_multitenant-0.3.0 spec/be_multitenant_on_matcher_spec.rb
rails_multitenant-0.2.0 spec/be_multitenant_on_matcher_spec.rb