Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Specs for #has_sdata_options

  • Loading branch information...
commit 12427d73c8ac83e43b1b17fa38c733d48b49ecb1 1 parent 917c9a9
DanielVartanov authored
View
9 spec/controller_mixin/acts_as_sdata_spec.rb → ...ontroller_mixin/has_sdata_options_spec.rb
@@ -1,8 +1,9 @@
-require File.join(File.dirname(__FILE__), '..', 'spec_helper')
+__DIR__ = File.dirname(__FILE__)
+require File.join(__DIR__, '..', 'spec_helper')
include SData
-describe ControllerMixin, ".acts_as_sdata" do
+describe ControllerMixin, ".has_sdata_options" do
describe "given an ActionController::Base class extended by ControllerMixin" do
before :all do
Base = Class.new ActionController::Base
@@ -11,7 +12,7 @@
before :each do
@options = { :model => Class.new }
- Base.acts_as_sdata @options
+ Base.has_sdataoptions @options
end
it "should make passed options available for class" do
@@ -26,4 +27,4 @@
Base.new.should respond_to(:build_sdata_feed)
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.