Sha256: 1b1a248965a2a50dffba040b6b2b90b9048c1bb75862225f9702331b090642f5

Contents?: true

Size: 875 Bytes

Versions: 1

Compression:

Stored size: 875 Bytes

Contents

require 'spec_helper'

describe PrivatePostsController do

  # This should return the minimal set of attributes required to create a valid
  # PrivatePost. As you add validations to PrivatePost, be sure to
  # adjust the attributes here as well.
  let(:valid_attributes) { { "title" => "MyString" } }

  # This should return the minimal set of values that should be in the session
  # in order to pass any filters (e.g. authentication) defined in
  # PrivatePostsController. Be sure to keep this updated too.
  let(:valid_session) { {} }

  describe "actions" do
    it "all require authentication" do
      # That's true for all actions, yet I think there's no need to repeat them all here.
      lambda { get :index, {}, valid_session }.should raise_exception(RuntimeError)
      lambda { get :new, {}, valid_session }.should raise_exception(RuntimeError)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_token_authentication-1.2.0 spec/dummy/spec/controllers/private_posts_controller_spec.rb