Sha256: 76ff49c62f121ffe4012b2ed95169509f4a8135820ef72de31ab8d97dd9cfe60
Contents?: true
Size: 769 Bytes
Versions: 66
Compression:
Stored size: 769 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'view/application' 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
66 entries across 66 versions & 1 rubygems