Skip to content

Commit d9a1a5d

Browse files
committed
Cleaning up the last added specs
1 parent 41d1943 commit d9a1a5d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/simple_navigation/item_spec.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,10 @@ module SimpleNavigation
199199
end
200200
end
201201

202-
context 'when block is given' do
203-
it "returns the item's name that is defined in block" do
204-
local_item_args = [item_container, :my_key, -> { "Name in block" }, url, options]
205-
item = Item.new(*local_item_args)
202+
context 'when a block is given' do
203+
let(:item_args) { [item_container, :my_key, -> { 'Name in block' }, url, options] }
206204

205+
it "returns the item's name that is defined in the block" do
207206
expect(item.name).to include 'Name in block'
208207
end
209208
end

0 commit comments

Comments
 (0)