Regression testing: cairo mock object stores graphics calls
So the idea behind this is maintain an "expected value" for the sample runs. We store the graphics calls and their arguments as a readable text file. Any change in the samples will break this, but the idea is to make sure this doesn't get broken unexpectedly. Rearranged the data files in specs
This commit is contained in:
@@ -26,7 +26,7 @@ describe Squib::Commands::New do
|
||||
end
|
||||
|
||||
it 'creates a new template on an empty directory' do
|
||||
Dir.mkdir('foo')
|
||||
FileUtils.mkdir_p('foo')
|
||||
@cmd.process(['foo'])
|
||||
expect(File.exists?('foo/deck.rb')).to be true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user