Stabilizing the code after the options switch. Getting there...
This commit is contained in:
@@ -6,7 +6,7 @@ describe Squib::Deck, '#text' do
|
||||
context "when working with fonts" do
|
||||
it"should use the default font when #text and #set_font don't specify" do
|
||||
card = instance_double(Squib::Card)
|
||||
expect(card).to receive(:text).with('a', Squib::SYSTEM_DEFAULTS[:font], anything, anything, anything, anything).once
|
||||
expect(card).to receive(:text).with('a', 'Arial 36', anything, anything, anything, anything).once
|
||||
Squib::Deck.new do
|
||||
@cards = [card]
|
||||
text str: 'a'
|
||||
|
||||
@@ -3,13 +3,13 @@ require 'squib'
|
||||
|
||||
describe Squib do
|
||||
|
||||
# it "should execute all examples with no errors" do
|
||||
# samples = File.expand_path('../samples', File.dirname(__FILE__))
|
||||
# Dir["#{samples}/**/*.rb"].each do |sample|
|
||||
# Dir.chdir(samples) do #to save to _output
|
||||
# require_relative "../samples/#{File.basename(sample)}"
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
it "should execute all examples with no errors" do
|
||||
samples = File.expand_path('../samples', File.dirname(__FILE__))
|
||||
Dir["#{samples}/**/*.rb"].each do |sample|
|
||||
Dir.chdir(samples) do #to save to _output
|
||||
require_relative "../samples/#{File.basename(sample)}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user