Skip to content
Browse files

Freezing a_b_plugin

  • Loading branch information...
1 parent fc88464 commit c6e859f3d45fd7f5ea315cedcae964a94ef46d2c @winton committed Oct 22, 2010
View
2 vendor/a_b_plugin/lib/a_b_plugin/gems.rb
@@ -7,7 +7,7 @@ class Gems
VERSIONS = {
:httparty => '=0.5.2',
- :json => '=1.2.0',
+ :json => '=1.4.3',
:'rack-test' => '=0.5.3',
:rake => '=0.8.7',
:rails => '=2.3.5',
View
8 vendor/a_b_plugin/lib/a_b_plugin/test.rb
@@ -79,9 +79,11 @@ def visit(name=nil, &block)
private
def category(name)
- ABPlugin::Config.categories.detect do |c|
- c['name'] == name ||
- symbolize_name(c['name']) == name
+ if ABPlugin::Config.categories
+ ABPlugin::Config.categories.detect do |c|
+ c['name'] == name ||
+ symbolize_name(c['name']) == name
+ end
end
end
View
20 vendor/a_b_plugin/spec/a_b_plugin_spec.rb
@@ -132,12 +132,22 @@
it "should call API.get" do
ABPlugin::API.should_receive(:get).with('/sites.json',
:query => {
- :only => [ :id, :category_id, :name, :tests, :variants ],
:site => { :name => "site" },
- :include => { :categories => { :tests => :variants }
- },
- :token=>"token"
- }).and_return(nil)
+ :include => {
+ :categories => {
+ :include => {
+ :tests => {
+ :include => {
+ :variants=>true
+ }
+ }
+ }
+ }
+ },
+ :token=>"token",
+ :only => [ :id, :category_id, :name, :tests, :variants ]
+ }
+ ).and_return(nil)
ABPlugin.new
end

0 comments on commit c6e859f

Please sign in to comment.
Something went wrong with that request. Please try again.