require "test_helper" describe S3Relay::UploadsHelper do before { @product = FactoryGirl.create(:product) } describe "#s3_relay_field" do describe "without options" do it do s3_relay_field(@product, :photo_uploads) .must_equal %Q{
} end end describe "with multiple: true" do it do s3_relay_field(@product, :photo_uploads, multiple: true) .must_equal %Q{
} end end describe "with disposition: attachment" do it do s3_relay_field(@product, :photo_uploads, disposition: :attachment) .must_equal %Q{
} end end end end