Stabilizing the code after the options switch. Getting there...

This commit is contained in:
Andy Meneely
2014-07-28 17:08:57 -04:00
parent e38b5dfdbe
commit f6480445df
11 changed files with 45 additions and 49 deletions
+1 -1
View File
@@ -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'
+8 -8
View File
@@ -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