blob: 2b134492885408ee4cd7f2654287d96b812d7162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require "spec_helper"
describe LicenseStatus::Confidential do
let!(:public_license) { License.create(confidential: false) }
let!(:confidential_license) { License.create(confidential: true) }
subject { LicenseStatus::Confidential.new }
it "returns confidential results" do
results = subject.filter(License)
results.should include(confidential_license)
results.should_not include(public_license)
end
it "returns it's name" do
subject.to_s.should == 'confidential'
end
end
|