Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git@github.com:railsmachine/moonshine

  • Loading branch information...
commit 0a26870a35fa862be5fc40fad41aeab0950045a1 2 parents d62881b + 630fab4
@jnewland jnewland authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  lib/moonshine/manifest.rb
  2. +2 −1  test/moonshine/manifest_test.rb
View
2  lib/moonshine/manifest.rb
@@ -29,7 +29,7 @@ class Moonshine::Manifest < ShadowPuppet::Manifest
# end
def self.plugin(name = nil)
if name.is_a?(Symbol)
- path = File.join(rails_root, 'vendor', 'plugins', name.to_s, 'moonshine', 'init.rb')
+ path = File.join(rails_root, 'vendor', 'plugins', 'moonshine_' + name.to_s, 'moonshine', 'init.rb')
else
path = name
end
View
3  test/moonshine/manifest_test.rb
@@ -32,7 +32,8 @@ def test_app_templates_override_moonshine_templates
end
def test_loads_plugins
- File.expects(:read).returns("""
+ @manifest = Moonshine::Manifest.new
+ File.expects(:read).with(File.expand_path(File.join(@manifest.rails_root, 'vendor', 'plugins', 'moonshine_iptables', 'moonshine','init.rb'))).returns("""
configure(:eval => true)
module EvalTest
Please sign in to comment.
Something went wrong with that request. Please try again.