Skip to content

Commit

Permalink
Satisfy rubocop requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ineu committed Mar 9, 2021
1 parent 41f7b3d commit 2335438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/business/calendar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@
end

describe ".new" do
it "allows to set optional name" do
it "allows to skip a name" do
instance = described_class.new
expect(instance.name).to eq nil
end

it "allows to set a name" do
instance = described_class.new(name: "foo")
expect(instance.name).to eq "foo"
end
Expand Down

0 comments on commit 2335438

Please sign in to comment.