Sha256: 4b3fc151c76e0013cb96537d59a18b87eee3798e930670fb89ff6ebf8230872d

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

require 'spec_helper'

describe ::RailsExtras::RSpec::Support::Common do
  include RailsExtras::RSpec::Support::Common

  it "#upload_file" do
    upload_file('example.txt').original_filename.should eq('example.txt')
    upload_file('example.txt').tempfile.should be_a(File)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_extras-0.1.5 spec/support/common_spec.rb
rails_extras-0.1.4 spec/support/common_spec.rb
rails_extras-0.1.3 spec/support/common_spec.rb
rails_extras-0.1.2 spec/support/common_spec.rb