Sha256: c42a058eca372ef2054bf021901f5deae00048ea40aed6eca08c9c47dcd78405

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

require 'spec_helper'

describe Storytime::User do
  it "assigns the admin role to the first user created" do
    Storytime::User.count.should == 0
    user = Storytime::User.create(email: "tony@stark.com", password: "password", password_confirmation: "password")
    Storytime::User.count.should == 1
    user.should be_admin
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
storytime-0.0.1 spec/models/user_spec.rb