This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AppName::Application.routes.draw do | |
| devise_for :admin_users | |
| mount RailsAdmin::Engine => "/admin", :as => 'rails_admin' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rspec' | |
| # This smells | |
| [[ 1, 2, 3], | |
| [ 4, 8, 12], | |
| [-2, 3, 1], | |
| [ 0, 0, 0]].each do |a, b, c| | |
| describe "#{a} + #{b}" do | |
| subject { a + b } | |
| it { should == c } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage | |
| # ----- | |
| # | |
| # spec_helper.rb | |
| # | |
| # RSpec.configure do |config| | |
| # ... | |
| # config.include CapybaraHelper, :type => :request | |
| # ... | |
| # end |
NewerOlder