spec/parameters_spec.rb in parameters-0.2.2 vs spec/parameters_spec.rb in parameters-0.2.3
- old
+ new
@@ -26,11 +26,11 @@
context "in a Class" do
it "should provide parameters" do
TestParameters.params.should_not be_empty
end
- it "can have default values for parameters" do
+ it "should have default values for parameters" do
TestParameters.param_value(:var_with_default).should == 'thing'
end
it "should provide class methods for paremters" do
TestParameters.var = 1
@@ -47,11 +47,11 @@
param.should_not be_nil
param.name.should == :var
end
- it "raise a ParamNotFound exception when directly accessing non-existent parameter objects" do
+ it "should raise a ParamNotFound exception when directly accessing non-existent parameter objects" do
lambda { TestParameters.get_param(:unknown) }.should raise_error(Parameters::ParamNotFound)
end
it "should provide descriptions for parameters" do
TestParameters.describe_param(:var).should_not be_empty
@@ -100,10 +100,10 @@
it "should provide direct access to all parameters" do
@test.params[:var].should_not be_nil
@test.params[:var_with_default].should_not be_nil
end
- it "can have default values for parameters" do
+ it "should have default values for parameters" do
@test.param_value(:var_with_default).should == 'thing'
end
it "should provide instance methods for parameters" do
@test.var = 2