Sha256: 9bb64c36259a56244f72002c9317e7ea401e51397ba71a3c5ddbdad34aeaef36

Contents?: true

Size: 529 Bytes

Versions: 3

Compression:

Stored size: 529 Bytes

Contents

require 'spec/spec_helper'

describe Scrooge::Strategy::Scope do
  
  before(:each) do
    @scope = Scrooge::Strategy::Scope.new
    @controller = Scrooge::Strategy::Controller.new( @scope )
    Scrooge::Base.profile.framework.stub!(:install_scope_middleware).and_return('installed')
    Scrooge::Base.profile.stub!(:scope).and_return( '1234567891' )    
  end
  
  it "should be able to execute a given strategy" do
    with_rails do
      lambda{ @controller.run!().value }.should raise_error( SystemExit )
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
methodmissing-scrooge-1.0.2 spec/units/scrooge/strategy/scope_spec.rb
methodmissing-scrooge-1.0.3 spec/units/scrooge/strategy/scope_spec.rb
methodmissing-scrooge-1.0.4 spec/units/scrooge/strategy/scope_spec.rb