fix broken tests and code.
This commit is contained in:
parent
2040be4b6c
commit
cc8bccfb15
@ -8,7 +8,7 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
def new_from_file(config_file, defaults)
|
def new_from_file(config_file, defaults = nil)
|
||||||
data = Data.new(config_file)
|
data = Data.new(config_file)
|
||||||
data.with_defaults(defaults) do
|
data.with_defaults(defaults) do
|
||||||
data._parse(config_file)
|
data._parse(config_file)
|
||||||
@ -16,7 +16,7 @@ module Compass
|
|||||||
data
|
data
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_from_string(contents, filename, defaults)
|
def new_from_string(contents, filename, defaults = nil)
|
||||||
data = Data.new(filename)
|
data = Data.new(filename)
|
||||||
data.with_defaults(defaults) do
|
data.with_defaults(defaults) do
|
||||||
data.parse_string(contents, filename)
|
data.parse_string(contents, filename)
|
||||||
|
@ -19,9 +19,9 @@ class RailsIntegrationTest < Test::Unit::TestCase
|
|||||||
begin
|
begin
|
||||||
generate_rails_app_directories("compass_rails")
|
generate_rails_app_directories("compass_rails")
|
||||||
Dir.chdir "compass_rails" do
|
Dir.chdir "compass_rails" do
|
||||||
compass(*%w(--rails --trace --boring .)) do |responder|
|
compass(*%w(init rails --trace --boring .)) do |responder|
|
||||||
responder.respond_to %r{^\s*Is this OK\? \(Y/n\)\s*$}, :with => "Y", :required => true
|
responder.respond_to %r{^\s*Is this OK\? \(Y/n\)\s*$}, :with => "Y"
|
||||||
responder.respond_to %r{^\s*Emit compiled stylesheets to public/stylesheets/compiled/\? \(Y/n\)\s*$}, :with => "Y", :required => true
|
responder.respond_to %r{^\s*Emit compiled stylesheets to public/stylesheets/compiled/\? \(Y/n\)\s*$}, :with => "Y"
|
||||||
end
|
end
|
||||||
# puts ">>>#{@last_result}<<<"
|
# puts ">>>#{@last_result}<<<"
|
||||||
assert_action_performed :create, "./app/stylesheets/screen.scss"
|
assert_action_performed :create, "./app/stylesheets/screen.scss"
|
||||||
|
Loading…
Reference in New Issue
Block a user