spec/lib/tabulous/tab_spec.rb in tabulous-2.0.0 vs spec/lib/tabulous/tab_spec.rb in tabulous-2.1.0
- old
+ new
@@ -42,9 +42,19 @@
it "should allow link_path to be set lazily" do
subject.link_path = lambda { some_text }
subject.link_path(@view).should == 'some text'
end
+ it "should allow http_verb to be set" do
+ subject.http_verb = :put
+ subject.http_verb.should == :put
+ end
+
+ it "should allow http_verb to be set lazily" do
+ subject.http_verb = lambda { :put }
+ subject.http_verb(@view).should == :put
+ end
+
it "should allow visible_when to be set" do
subject.visible_when = false
subject.visible?.should be_false
end