Sha256: 544235fc1442410ce0d9a3c920fef0467068f168d9b14f902e98d7208e09dab4

Contents?: true

Size: 326 Bytes

Versions: 9

Compression:

Stored size: 326 Bytes

Contents

require 'spec_helper'

RSpec.describe Roroacms::Menu, :type => :model do

  let!(:menu) { FactoryGirl.create(:menu) }

  it "is invalid without name" do
    menu.name = nil
    expect(menu).to_not be_valid
  end

  it "is invalid without key" do
    menu.key = nil
    expect(menu).to_not be_valid
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roroacms-0.0.6.4 spec/models/roroacms/menu_spec.rb
roroacms-0.0.6.2 spec/models/roroacms/menu_spec.rb
roroacms-0.0.6.1 spec/models/roroacms/menu_spec.rb
roroacms-0.0.6 spec/models/roroacms/menu_spec.rb
roroacms-0.0.5 spec/models/roroacms/menu_spec.rb
roroacms-0.0.4 spec/models/roroacms/menu_spec.rb
roroacms-0.0.3 spec/models/roroacms/menu_spec.rb
roroacms-0.0.2 spec/models/roroacms/menu_spec.rb
roroacms-0.0.1 spec/models/roroacms/menu_spec.rb