Skip to content

Commit

Permalink
feature: added fixture loading helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kernow committed Apr 3, 2010
1 parent 0d6de88 commit 6030b13
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -17,7 +17,7 @@ spec = Gem::Specification.new do |s|

# Change these as appropriate
s.name = "panelbeater"
s.version = "0.1.0"
s.version = "0.1.2"
s.summary = "A gem for communicating with the cPanel and WHM API's"
s.author = "Jamie Dyer"
s.email = "jamie@kernowsoul.com"
Expand Down
3 changes: 2 additions & 1 deletion lib/panelbeater.rb
Expand Up @@ -7,4 +7,5 @@
require 'panelbeater/response'
require 'panelbeater/model'
require 'panelbeater/cpanel/commands'
require 'panelbeater/whm/commands'
require 'panelbeater/whm/commands'
require 'panelbeater/fixture_helper'
9 changes: 9 additions & 0 deletions lib/panelbeater/fixture_helper.rb
@@ -0,0 +1,9 @@
module CpanelApi
class FixtureHelper

def self.load(name)
File.read( File.join(File.dirname(__FILE__),"../../test/fixtures", "#{name}.json") )
end

end
end

0 comments on commit 6030b13

Please sign in to comment.