Sha256: 2d088c81f2d58b1d5071908af04ff70606406ecc7af78addcd3380d4d069ca75
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' require 'ronin/db/http_header_name' describe Ronin::DB::HTTPHeaderName do it "must use the 'ronin_http_header_names' table" do expect(described_class.table_name).to eq('ronin_http_header_names') end let(:name) { 'foo' } describe "validations" do describe "name" do it "should require name attribute" do http_header_name = described_class.new expect(http_header_name).to_not be_valid expect(http_header_name.errors[:name]).to eq( ["can't be blank"] ) http_header_name = described_class.new(name: name) expect(http_header_name).to be_valid end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-db-activerecord-0.1.0.beta1 | spec/http_header_name_spec.rb |