Sha256: 91f2a5c15196bb39297df92fd023457c70ea6eb0dacd67110e19b0a00b03ee3e
Contents?: true
Size: 741 Bytes
Versions: 6
Compression:
Stored size: 741 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Application do describe "set current view" do it "should set current view" do Application.current_view = "staging" Application.current_view.should == "staging" end end describe "current_view?" do it "should be true" do Application.current_view = "staging" Application.current_view?("staging") end it "should be false" do Application.current_view = "staging" Application.current_view?("funk") end end describe "return current view" do it "should return current view" do Application.current_view = "staging" Application.current_view.should == "staging" end end end
Version data entries
6 entries across 6 versions & 1 rubygems