Giter VIP home page Giter VIP logo

base's People

Contributors

gurix avatar jmuheim avatar rowofpixels avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

base's Issues

Refactor specs to resemble new RSpec.describe syntax

Before:

require 'rails_helper'

describe UsersController do
  describe 'routing' do
    it 'routes to #index' do
      expect(get('/users')).to route_to('users#index')
    end

Now:

require "rails_helper"

RSpec.describe BoilerplatesController, type: :routing do
  describe "routing" do

    it "routes to #index" do
      expect(:get => "/boilerplates").to route_to("boilerplates#index")
    end

Make `driver: :chrome` work again

See http://stackoverflow.com/questions/29387097/capybara-and-chrome-driver-sqlite3busyexception-database-is-locked.

# To make chrome driver work, we need to monkey patch active record, otherwise we get an "SQLite3::BusyException: database is locked". See http://stackoverflow.com/questions/29387097.
class ActiveRecord::Base
  mattr_accessor :shared_connection
  @@shared_connection = nil

  def self.connection
    @@shared_connection || retrieve_connection
  end
end
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection

Tests are run twice when running `rake`

$ rake
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
/Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/controllers/dashboards_controller_spec.rb ./spec/helpers/dashboards_helper_spec.rb ./spec/views/dashboards/show.html.slim_spec.rb
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
 3/3 |======================================================= 100 =======================================================>| Time: 00:00:00 

Pending:
  DashboardsHelper add some examples to (or delete) /Users/josh/Documents/Work/Sientia/tests/transition/spec/helpers/dashboards_helper_spec.rb
    # No reason given
    # ./spec/helpers/dashboards_helper_spec.rb:14
  dashboards/show.html.slim add some examples to (or delete) /Users/josh/Documents/Work/Sientia/tests/transition/spec/views/dashboards/show.html.slim_spec.rb
    # No reason given
    # ./spec/views/dashboards/show.html.slim_spec.rb:4

Finished in 0.04166 seconds
3 examples, 0 failures, 2 pending

Randomized with seed 18287

/Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/controllers/dashboards_controller_spec.rb ./spec/helpers/dashboards_helper_spec.rb ./spec/views/dashboards/show.html.slim_spec.rb
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
 3/3 |======================================================= 100 =======================================================>| Time: 00:00:00 

Pending:
  DashboardsHelper add some examples to (or delete) /Users/josh/Documents/Work/Sientia/tests/transition/spec/helpers/dashboards_helper_spec.rb
    # No reason given
    # ./spec/helpers/dashboards_helper_spec.rb:14
  dashboards/show.html.slim add some examples to (or delete) /Users/josh/Documents/Work/Sientia/tests/transition/spec/views/dashboards/show.html.slim_spec.rb
    # No reason given
    # ./spec/views/dashboards/show.html.slim_spec.rb:4

Finished in 0.04079 seconds
3 examples, 0 failures, 2 pending

Randomized with seed 13756

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.