Initial commit
This commit is contained in:
21
spec/models/releasable_param_spec.rb
Normal file
21
spec/models/releasable_param_spec.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe ReleasableParam do
|
||||
describe "#id" do
|
||||
it "returns id from first releasable param" do
|
||||
expect(described_class.new({location_release_id: 1, talent_release_id: 4, another: "param"}).id).to eq 1
|
||||
end
|
||||
end
|
||||
|
||||
describe "#name" do
|
||||
it "returns name from first releasable param" do
|
||||
expect(described_class.new({location_release_id: 1, talent_release_id: 4, another: "param"}).name).to eq "location_release"
|
||||
end
|
||||
end
|
||||
|
||||
describe "#type" do
|
||||
it "returns type from first releasable param" do
|
||||
expect(described_class.new({location_release_id: 1, talent_release_id: 4, another: "param"}).type).to eq LocationRelease
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user