mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-18 16:01:42 +00:00
spec updated in order to run proper tests for further refactoring
This commit is contained in:
parent
e1e3c990f2
commit
c90bc34dc5
@ -1,13 +1,13 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require File.join(File.dirname(__FILE__), 'gilded_rose')
|
require File.join(File.dirname(__FILE__), 'gilded_rose')
|
||||||
|
|
||||||
describe GildedRose do
|
describe GildedRose do
|
||||||
|
describe '#update_quality' do
|
||||||
describe "#update_quality" do
|
it 'does not change the name' do
|
||||||
it "does not change the name" do
|
items = [Item.new('foo', 0, 0)]
|
||||||
items = [Item.new("foo", 0, 0)]
|
GildedRose.new(items).update_quality
|
||||||
GildedRose.new(items).update_quality()
|
expect(items[0].name).to eq 'foo'
|
||||||
expect(items[0].name).to eq "fixme"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user