Sha256: 42239e4bd9794b1e7a66e8ff6a7e7b1ca6aefcfaa53f1f965ecdf4475543674b

Contents?: true

Size: 619 Bytes

Versions: 9

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'
require 'helpers/app_creator'
require 'helpers/fakable_pathman_tester'
require 'helpers/act_like_rails2311'

describe 'sync' do
  before :all do
    FakablePathManTester.switch_on 'spec/fixtures/rails2311/fully-loaded/'
    ActLikeRails2311.switch_on
  end
  before :each do
    AppCreator.create
  end

  after :all do
    AppCreator.reset
    FakablePathManTester.switch_off
    ActLikeRails2311.switch_off
  end

  it "replaces all images" do
   local = Asset.all

   Asset.sync
   remote = RemoteAsset.all
   
   remote.count.should == 8

   local.each{|l| remote.should include(l) }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trackman-0.6.18 spec/rails2311/first_push_spec.rb
trackman-0.6.17 spec/rails2311/first_push_spec.rb
trackman-0.6.16 spec/rails2311/first_push_spec.rb
trackman-0.6.15 spec/rails2311/first_push_spec.rb
trackman-0.6.14 spec/rails2311/first_push_spec.rb
trackman-0.6.13 spec/rails2311/first_push_spec.rb
trackman-0.6.12 spec/rails2311/first_push_spec.rb
trackman-0.6.11 spec/rails2311/first_push_spec.rb
trackman-0.6.10 spec/rails2311/first_push_spec.rb