Sha256: 813b45c95d9362748f51a743bca0cd5e12d3640a089e549038e67344ca2123ab

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe APP::Models::Helpers do
  let(:klass) {APP::Models::Helpers}
  context "class methods" do

    specify {klass.should respond_to(:array_accessor_methods)}
    context "array_accessor_methods" do
      it "returns expected array methods" do
        klass.array_accessor_methods.sort.should ==  [:[], :at,:fetch, :first, :last,:each,
                                                                    :each_index, :reverse_each,:length, :size,
                                                                    :empty?, :find_index, :index,:rindex, :collect,
                                                                    :map, :select, :keep_if, :values_at].sort
      end
    end

    specify {klass.should respond_to(:possible_sizes)}
    context "possible_sizes" do
      it "returns expected array of possible image sizes" do
        klass.possible_sizes.should == [:square, :thumbnail, :small, :medium,
                                                              :medium_640, :large, :original]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flickrmocks-0.8.6 spec/models/helpers_spec.rb
flickrmocks-0.8.5 spec/models/helpers_spec.rb