Sha256: a823faed3cd6cbd0972e4b4dd2bdcfb94c8861e56cff303144fa8f98f459ab56

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

require 'spec_helper'

require 'ronin/url_scheme'

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

  describe "validations" do
    it "should require a name" do
      expect(subject).not_to be_valid
    end

    describe "name" do
      subject { described_class.new(:name => 'http') }

      it "should require a unique name" do
        expect(subject).not_to be_valid
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-1.5.1 spec/url_scheme_spec.rb