Created
April 28, 2017 20:56
-
-
Save bilus/72ad145f8715cb62c286539b84dcc922 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.describe Package do | |
let(:package) { described_class.new(owner: owner) } | |
describe '#company_owned?' do | |
subject { package.company_owned? } | |
context 'when owned by User' do | |
let(:owner) { User.new } | |
it { is_expected.to be_truthy } | |
end | |
context 'when owned by Company' do | |
let(:owner) { Company.new } | |
it { is_expected.to be_falsey } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment