Sha256: 04fc720ba450e5c5313cbcbfee735857e46b4e11ec38aca9965720ec17acef94

Contents?: true

Size: 466 Bytes

Versions: 17

Compression:

Stored size: 466 Bytes

Contents

require 'test_helper'

class FlixCloud::ParametersTest < Test::Unit::TestCase

  context "When validating a parameters object with no attributes set" do
    setup do
      @parameters = FlixCloud::Parameters.new
      @parameters.valid?
    end

    should "require user" do
      assert_match /user is required/, @parameters.errors.to_s
    end

    should "require password" do
      assert_match /password is required/, @parameters.errors.to_s
    end
  end

end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
flixcloud-flix_cloud-gem-0.5.3 test/flix_cloud/parameters_test.rb
flixcloud-flix_cloud-gem-0.5.4 test/flix_cloud/parameters_test.rb
flixcloud-flix_cloud-gem-0.5.5 test/flix_cloud/parameters_test.rb
spob-flix_cloud-gem-0.5.3 test/flix_cloud/parameters_test.rb
spob-flix_cloud-gem-0.5.4 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.0.0 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.1.1 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.2.0 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.3.0 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.4.0 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.5.0 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.5.1 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.5.2 test/flix_cloud/parameters_test.rb
zencoder-flix_cloud-gem-0.5.3 test/flix_cloud/parameters_test.rb
spob-flix_cloud-gem-0.6.2 test/flix_cloud/parameters_test.rb
spob-flix_cloud-gem-0.6.1 test/flix_cloud/parameters_test.rb
spob-flix_cloud-gem-0.6 test/flix_cloud/parameters_test.rb