Add Readme note on restarting Rails server

after generating application policy. Fixes #51.
Add Ruby 2.0 on Travis, drop Ruby 1.9.2
Use RSpec double syntax over stub to fix deprecation warning
Merge pull request #56 from elabs/test_doubles

Use RSpec double syntax over stub to fix deprecation warning
Merge pull request #54 from thomasklemm/travis

Add Ruby 2.0 on Travis, drop Ruby 1.9.2
Update link to testing policies blog post in Readme

Closes #57.
Allow policies and scopes to be injected into controllers.

In controller specs instead of relying on Pundit to instantiate the correct
policy object allow it to be injected into the controller. More often than not
a double is used in controller specs which means the policy cannot be
inferred. This also allows us to double the policy to ensure that on a unit
level the rights methods are being called on callaborators.

class PostsController < ApplicationController
  attr_writer :post
  helper_method :post

  def create
    authorize post

    post.save
    respond_with post
  end

  private

  def post
    @post ||= Post.new post_attributes
  end
end

describe PagesController do
  let(:policy) { double 'SomePolicy', create?: true }

  before do
    controller.policy = policy
  end

  it 'delegates authorization to policy' do
    expect(policy).to have_received(:create?)
  end
end

Add spec for injecting policy.

Use `or` instead of ternary operator.

Allow policy_scope to be injected for controller tests.
Merge pull request #59 from elabs/inject_policy

Allow policies and scopes to be injected into controllers.
Update README to avoid subclasses Struct

Subclassing Struct unnecessarily introduces an anonymous class.
Merge pull request #61 from jeremyw/patch-1

Update README to avoid subclassing Struct
Document project license in gemspec
Fix to the Scope section of the README

I am pretty sure the admin scope only works if I use scope.all in line 163 instead of just scope. Please let me know if there's something I am missing.
Merge pull request #63 from ivanoats/master

Fix to the Scope section of the README
Merge remote-tracking branch 'upstream/master'