spectator

Version, currently 0.2.03 versions

github.com/grip-framework/spectator

Easy testing for Grip

2 stars
2 dependents
License: MIT

Nothing has been indexed for 0.2.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  spectator:
    github: grip-framework/spectator
    version: ~> 0.2.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.2.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

Spectator

A test suite for the Grip framework.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      grip:
        github: grip-framework/grip
    
      spectator:
        github: grip-framework/spectator
  2. Run shards install

Usage

Require after you require any of your tests in the spec_helper.cr.

require "../src/your_grip_app"
require "spectator"

Test the controllers using the Spectator shard.

describe "Controller test example" do
  it "renders /" do
    response = get Application.new, "/"
    response.status_code.should eq 200
  end
end

Contributing

  1. Fork it (https://github.com/grip-framework/spectator/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors