Sha256: d76490c3fb533072d821a6dbe285e1246a0fb9cdc7ed8f519be56cf9120cce8a

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe "Dragonfly" do
  
  it "should return RMagickConfiguration as Config::RMagickImages, with a deprecation warning" do
    Dragonfly.should_receive(:puts).with(string_matching(/WARNING/))
    Dragonfly::RMagickConfiguration.should == Dragonfly::Config::RMagickImages
  end
  
  it "should raise an error for other undefined constants" do
    lambda{
      Dragonfly::Eggheads
    }.should raise_error(NameError)
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dragonfly-0.6.2 spec/dragonfly_spec.rb
dragonfly-0.6.1 spec/dragonfly_spec.rb
dragonfly-0.6.0 spec/dragonfly_spec.rb