Sha256: 0e76e4e7192705fd7f76a60198dc335d5c3d9b2d990278ffe5401f6a4237c70e

Contents?: true

Size: 958 Bytes

Versions: 2

Compression:

Stored size: 958 Bytes

Contents

# RspecGem

   Invoke the tests rspec from gems in application rails.

## Installation

Add this line to your application's Gemfile:

    gem 'rspec_gem'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rspec_gem

## Usage

For example, you have rails application of name "rails_app" and gem of name "testing_gem" with the files for testing.

Then you should include

    require "rspec_gem"
    RspecGem.new(File.expand_path("../..", __FILE__), "testing_gem")

into file ../testing_gem/lib/testing_gem.rb in your gem.

You can use path into rails environment through use method (Usage resource of application, like models)

    RspecGem.path_rails_environment

Finally in your application rails_app invoke command (all tests from directory "spec" from gem testing_gem)

    rake testing_gem:rspec spec

with color

    rake testing_gem:rspec "spec --color"

more precision

    rake testing_gem:rspec spec/testing_gem_spec.rb

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec_gem-0.1.1 README.md
rspec_gem-0.1.0 README.md