Sha256: 01ca72633f981af5f637dfada5bde7ab84aed52aac7e20000733c860aff21f4a
Contents?: true
Size: 633 Bytes
Versions: 19
Compression:
Stored size: 633 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe "Pancake::Stack.new_app_instance" do before(:each) do class ::FooStack < Pancake::Stack end end after(:each) do clear_constants(:FooStack) end it "should provide a new instance of the applciation" do FooStack.new_app_instance.should == Pancake::MISSING_APP end it "should allow me to overwrite the new_app_instance for this stack" do class ::BarStack < Pancake::Stack def self.new_app_instance ::Pancake::OK_APP end end BarStack.new_app_instance.should == ::Pancake::OK_APP end end
Version data entries
19 entries across 19 versions & 2 rubygems