Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metova-dummy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metova-dummy

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Metova Dummy

It's a pain to have to setup a testing environment when creating gems. This app includes a Rails skeleton that can be included in other gems so that everything is already setup.

Gem functionality can just be patched into existing classes, or you can make your own. For example, to test Devise authentication in a gem, you could just make a new controller and inherit from Metova::Dummy::ApplicationController.

class AuthenticationTestController < Metova::Dummy::ApplicationController
  before_action :authenticate_user!
  def secret
    head :ok
  end
end

describe AuthenticationTestController do
  it 'returns a 401 when not authenticated' do
    get :secret
    expect(response.status).to eq 401
  end
end

Installation

Add this line to your gem's gemspec:

spec.add_development_dependency 'metova-dummy'

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/metova-dummy/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

FAQs

Package last updated on 28 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc