Sha256: 8aed0fb780b5fe3df70c3cc245317ad4048cbc12cbb4a6f8f2a5de2765a58670

Contents?: true

Size: 359 Bytes

Versions: 18

Compression:

Stored size: 359 Bytes

Contents

require 'spec_helper'
require 'ronin/url_scheme'

describe URLScheme do
  before(:all) { @scheme = URLScheme.create(:name => 'http') }

  it "should require a name" do
    scheme = URLScheme.new

    scheme.should_not be_valid
  end

  it "should require a unique name" do
    scheme = URLScheme.new(:name => 'http')

    scheme.should_not be_valid
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ronin-1.5.0 spec/url_scheme_spec.rb
ronin-1.5.0.rc2 spec/url_scheme_spec.rb
ronin-1.5.0.rc1 spec/url_scheme_spec.rb
ronin-1.4.1 spec/url_scheme_spec.rb
ronin-1.4.0 spec/url_scheme_spec.rb
ronin-1.4.0.rc2 spec/url_scheme_spec.rb
ronin-1.4.0.rc1 spec/url_scheme_spec.rb
ronin-1.3.0 spec/url_scheme_spec.rb
ronin-1.2.0 spec/url_scheme_spec.rb
ronin-1.1.0 spec/url_scheme_spec.rb
ronin-1.1.0.rc3 spec/url_scheme_spec.rb
ronin-1.1.0.rc2 spec/url_scheme_spec.rb
ronin-1.1.0.rc1 spec/url_scheme_spec.rb
ronin-1.0.0 spec/url_scheme_spec.rb
ronin-1.0.0.rc3 spec/url_scheme_spec.rb
ronin-1.0.0.rc2 spec/url_scheme_spec.rb
ronin-1.0.0.rc1 spec/url_scheme_spec.rb
ronin-1.0.0.pre4 spec/url_scheme_spec.rb