mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +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')
|
||||
|
||||
describe GildedRose do
|
||||
|
||||
describe "#update_quality" do
|
||||
it "does not change the name" do
|
||||
items = [Item.new("foo", 0, 0)]
|
||||
GildedRose.new(items).update_quality()
|
||||
expect(items[0].name).to eq "fixme"
|
||||
describe '#update_quality' do
|
||||
it 'does not change the name' do
|
||||
items = [Item.new('foo', 0, 0)]
|
||||
GildedRose.new(items).update_quality
|
||||
expect(items[0].name).to eq 'foo'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user