Skip to content

Commit

Permalink
Remove helpers api.
Browse files Browse the repository at this point in the history
Helpers are accessible via global context.
  • Loading branch information
thedeeno committed Apr 15, 2013
1 parent 82974b4 commit d439a3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions lib/haml_coffee_assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@
# its configuration settings.
#
module HamlCoffeeAssets
def self.helpers
GlobalContext.to_s
end
end
8 changes: 0 additions & 8 deletions spec/haml_coffee_assets/haml_coffee_assets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@
HamlCoffeeAssets.config.should be_an_instance_of ::HamlCoffeeAssets::Configuration
end
end

describe '.helpers' do
it "returns the global context from asset pipeline" do
HamlCoffeeAssets::GlobalContext.stub(:to_s) { "foo" }
helpers = HamlCoffeeAssets.helpers
helpers.should =~ /foo/
end
end
end

0 comments on commit d439a3b

Please sign in to comment.