mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
28 lines
539 B
Ruby
28 lines
539 B
Ruby
|
# == Schema Information
|
||
|
#
|
||
|
# Table name: forums
|
||
|
#
|
||
|
# id :integer not null, primary key
|
||
|
# title :string(255)
|
||
|
# description :string(255)
|
||
|
# category_id :integer
|
||
|
# created_at :datetime
|
||
|
# updated_at :datetime
|
||
|
# position :integer
|
||
|
#
|
||
|
|
||
|
require "spec_helper"
|
||
|
|
||
|
describe Forumer do
|
||
|
describe "create" do
|
||
|
let(:forumer) { build :forumer }
|
||
|
|
||
|
it "creates a new forumer" do
|
||
|
expect(forumer.valid?).to eq(true)
|
||
|
expect do
|
||
|
forumer.save!
|
||
|
end.to change(Forumer, :count).by(1)
|
||
|
end
|
||
|
end
|
||
|
end
|