Skip to content

Commit 6136483

Browse files
author
Jon Willesen
committed
spec: rails3 models/plugin_settings_spec
Change-Id: I7d9e75c46fc49ab2b86020e7f9cdb8f2c57ee24f Reviewed-on: https://gerrit.instructure.com/29637 Reviewed-by: Cody Cutrer <cody@instructure.com> Tested-by: Jenkins <jenkins@instructure.com> Product-Review: Jon Willesen <jonw@instructure.com> QA-Review: Jon Willesen <jonw@instructure.com>
1 parent 3d52c37 commit 6136483

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/models/plugin_setting_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
it "should not be valid if there are decrypt errors" do
3737
s = PluginSetting.new(:name => "plugin_setting_test", :settings => {:bar => "qwerty", :foo_enc => "invalid", :foo_salt => "invalid"})
38-
s.send(:create_without_callbacks).should be_true
38+
s.send(:save_without_callbacks).should be_true
3939

4040
s.reload
4141
s.valid_settings?.should be_false
@@ -50,15 +50,15 @@
5050

5151
it "should return updated content if created" do
5252
s = PluginSetting.new(:name => "plugin_setting_test", :settings => {:bar => "qwerty"})
53-
s.send(:create_without_callbacks).should be_true
53+
s.send(:save_without_callbacks).should be_true
5454
settings = PluginSetting.settings_for_plugin("plugin_setting_test")
5555
settings.should_not be_nil
5656
settings[:bar].should == "qwerty"
5757
end
5858

5959
it "should return default content if the setting is disabled" do
6060
s = PluginSetting.new(:name => "plugin_setting_test", :settings => {:bar => "qwerty"})
61-
s.send(:create_without_callbacks).should be_true
61+
s.send(:save_without_callbacks).should be_true
6262
settings = PluginSetting.settings_for_plugin("plugin_setting_test")
6363
settings.should_not be_nil
6464
settings[:bar].should == "qwerty"

0 commit comments

Comments
 (0)