spec/lib/helpers/options_helper_spec.rb in trackerific-0.5.5 vs spec/lib/helpers/options_helper_spec.rb in trackerific-0.6.0

- old
+ new

@@ -3,27 +3,27 @@ describe OptionsHelper do include OptionsHelper describe :validate_options do - context "with all required options" do + context "with all required parameters" do before do @required = [:hello, :world] @options = {:hello => true, :world => true} end subject { validate_options(@options, @required) } it { should be true } end - context "with missing required options" do + context "with missing required parameters" do before do @required = [:hello, :world] @options = {:hello => true} end specify { lambda { validate_options(@options, @required) }.should raise_error(ArgumentError) } end - context "with no required options" do + context "with no required parameters" do before do @required = [] @options = {} end subject { validate_options(@options, @required) }