Sha256: f224ef3ab4b3e1408a9f154920e8664383481812d728af71f416a32435b713e6

Contents?: true

Size: 726 Bytes

Versions: 5

Compression:

Stored size: 726 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TBird::Configuration do
  before do
    TBird::Configuration.configure do |config|
      config.aws_key = 'access_key_id'
      config.aws_secret = 'secret_access_key'
      config.aws_bucket = 'bucket_name'
      config.thumbnail_size = 200
    end
  end

  it "can configure :aws_key" do
    TBird::Configuration.aws_key.must_equal 'access_key_id'
  end

  it "can configure :aws_secret" do
    TBird::Configuration.aws_secret.must_equal 'secret_access_key'
  end

  it "can configure :aws_bucket" do
    TBird::Configuration.aws_bucket.must_equal 'bucket_name'
  end
  it "can configure :thumbnail_size" do
    TBird::Configuration.thumbnail_size.must_equal 200
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
t_bird-0.0.5 spec/t_bird/configuration_spec.rb
t_bird-0.0.4 spec/t_bird/configuration_spec.rb
t_bird-0.0.3 spec/t_bird/configuration_spec.rb
t_bird-0.0.2 spec/t_bird/configuration_spec.rb
t_bird-0.0.1 spec/t_bird/configuration_spec.rb