Permalink
Browse files

Use `--require spec_helper` option on rspec

  • Loading branch information...
taki committed Sep 13, 2015
1 parent 86ea114 commit 6a44400c9bcd373a147ffc4818782eb3cf161bcf
Showing with 1 addition and 90 deletions.
  1. +1 −0 .rspec
  2. +0 −2 spec/features/invitations_spec.rb
  3. +0 −2 spec/features/onboarding_spec.rb
  4. +0 −2 spec/features/owner_deletes_account_spec.rb
  5. +0 −2 spec/features/subdomains_spec.rb
  6. +0 −2 spec/features/user_downloads_entries_spec.rb
  7. +0 −2 spec/features/user_edits_account_spec.rb
  8. +0 −2 spec/features/user_manages_archived_projects_spec.rb
  9. +0 −2 spec/features/user_manages_billables_spec.rb
  10. +0 −2 spec/features/user_manages_categories_spec.rb
  11. +0 −2 spec/features/user_manages_clients_spec.rb
  12. +0 −2 spec/features/user_manages_own_hours_spec.rb
  13. +0 −2 spec/features/user_manages_own_mileages_spec.rb
  14. +0 −2 spec/features/user_manages_projects_spec.rb
  15. +0 −2 spec/features/user_registers_kilometers_spec.rb
  16. +0 −2 spec/features/user_registers_time_spec.rb
  17. +0 −2 spec/features/user_signs_in_spec.rb
  18. +0 −2 spec/features/user_signs_out_spec.rb
  19. +0 −2 spec/features/user_views_entry_audit_trail_spec.rb
  20. +0 −2 spec/features/user_views_own_report_spec.rb
  21. +0 −2 spec/features/user_views_project_audit_trail_spec.rb
  22. +0 −2 spec/features/user_views_report_spec.rb
  23. +0 −2 spec/features/user_views_tags_spec.rb
  24. +0 −2 spec/features/visitor_creates_account_spec.rb
  25. +0 −2 spec/helpers/application_helper_spec.rb
  26. +0 −2 spec/helpers/cache_helper_spec.rb
  27. +0 −1 spec/lib/audit_history_spec.rb
  28. +0 −2 spec/lib/hours_spec.rb
  29. +0 −2 spec/models/account_spec.rb
  30. +0 −2 spec/models/billable_list_spec.rb
  31. +0 −2 spec/models/category_spec.rb
  32. +0 −2 spec/models/client_spec.rb
  33. +0 −1 spec/models/entry_csv_generator_spec.rb
  34. +0 −2 spec/models/entry_filter_spec.rb
  35. +0 −2 spec/models/entry_query_spec.rb
  36. +0 −2 spec/models/factories_spec.rb
  37. +0 −2 spec/models/hour_spec.rb
  38. +0 −2 spec/models/mileage_spec.rb
  39. +0 −2 spec/models/project_spec.rb
  40. +0 −2 spec/models/remaining_category_spec.rb
  41. +0 −2 spec/models/report_entry_spec.rb
  42. +0 −2 spec/models/signup_spec.rb
  43. +0 −2 spec/models/tag_spec.rb
  44. +0 −2 spec/models/tagging_spec.rb
  45. +0 −2 spec/models/time_series_spec.rb
  46. +0 −2 spec/models/user_spec.rb
  47. +0 −2 spec/support/entry_stats_helper.rb
View
1 .rspec
@@ -1 +1,2 @@
--color
--require spec_helper
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Inviting users" do
let(:subdomain) { generate(:subdomain) }
let(:owner) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Onboarding" do
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Delete Account" do
let(:subdomain) { generate(:subdomain) }
let(:owner) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Subdomains" do
let!(:account) { create(:account_with_schema) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Downloading enries" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Edit Account" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages archived projects" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages billables" do
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages categories" do
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages clients" do
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages their own hours" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages their own mileage" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User manages projects" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User registers kilometers" do
let(:user) { build(:user) }
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User registers time" do
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User signs in" do
let(:user) { build(:user) }
let!(:account) { create(:account_with_schema, owner: user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User signs out" do
let(:user) { build(:user) }
let!(:account) { create(:account_with_schema, owner: user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User views Entry Audit Trail" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User views own report" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User views Project Audit Trail" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User Report" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "User view tags overview" do
let(:subdomain) { generate(:subdomain) }
let(:user) { build(:user) }
@@ -1,5 +1,3 @@
require "spec_helper"
feature "Account Creation" do
let(:subdomain) { generate(:subdomain) }
@@ -1,5 +1,3 @@
require "spec_helper"
describe ApplicationHelper do
include ApplicationHelper
@@ -1,5 +1,3 @@
require "spec_helper"
describe CacheHelper do
describe "#cache_keys_for_all" do
it "returns an array of cache keys" do
@@ -1,4 +1,3 @@
require "spec_helper"
require "audit_history"
describe AuditHistory do
View
@@ -1,5 +1,3 @@
require "spec_helper"
describe Hours do
context "helpful_enabled" do
it "returns false when there's no account or url" do
@@ -9,8 +9,6 @@
# updated_at :datetime
#
require "spec_helper"
describe Account do
describe "validations" do
it { should validate_presence_of :owner }
@@ -1,5 +1,3 @@
require "spec_helper"
describe BillableList do
let(:client1) { create(:client) }
let(:client2) { create(:client) }
@@ -8,8 +8,6 @@
# updated_at :datetime
#
require "spec_helper"
describe Category do
describe "validations" do
it { should validate_presence_of :name }
@@ -13,8 +13,6 @@
# updated_at :datetime
#
require "spec_helper"
describe Client do
let(:client) { create(:client) }
@@ -1,4 +1,3 @@
require "spec_helper"
require "csv"
describe EntryCSVGenerator do
@@ -1,5 +1,3 @@
require "spec_helper"
describe EntryFilter do
it "sets params" do
filter = EntryFilter.new({ client_id: 1 })
@@ -1,5 +1,3 @@
require "spec_helper"
describe EntryQuery do
let(:client) { create(:client) }
let(:project) { create(:project, archived: true, client: client) }
@@ -1,5 +1,3 @@
require 'spec_helper'
describe 'factories' do
FactoryGirl.factories.map(&:name).each do |factory_name|
specify "#{factory_name} factory is valid", :factory do
View
@@ -14,8 +14,6 @@
# billed :boolean default("false")
#
require 'spec_helper'
describe Hour do
describe "validations" do
it { should validate_presence_of :user }
@@ -12,8 +12,6 @@
# updated_at :datetime
#
require "spec_helper"
describe Mileage do
describe "validations" do
it { should validate_presence_of :user }
@@ -14,8 +14,6 @@
# description :text
#
require "spec_helper"
describe Project do
let(:project) { create(:project) }
@@ -1,5 +1,3 @@
require "spec_helper"
describe RemainingCategory do
let(:project) { create(:project) }
let(:category) { create(:category) }
@@ -1,5 +1,3 @@
require "spec_helper"
describe ReportEntry do
let(:hour) { create(:hour_with_client) }
let(:mileage) { create (:mileage_with_client) }
@@ -1,5 +1,3 @@
require "spec_helper"
describe Signup do
it "creates an account and a user" do
signup = Signup.new(signup_params)
View
@@ -9,8 +9,6 @@
# slug :string
#
require "spec_helper"
describe Tag do
describe "validations" do
it { should validate_presence_of :name }
@@ -9,8 +9,6 @@
# updated_at :datetime
#
require 'spec_helper'
describe Tagging do
describe "validations" do
it { should validate_presence_of :tag }
@@ -1,5 +1,3 @@
require "spec_helper"
describe TimeSeries do
let(:user) { create(:user) }
View
@@ -33,8 +33,6 @@
# invitations_count :integer default("0")
#
require "spec_helper"
describe User do
describe "validations" do
it { should validate_presence_of :first_name }
@@ -1,5 +1,3 @@
require "spec_helper"
def entry_with_hours_project(hours, project)
create(:hour, value: hours, project: project)
end

0 comments on commit 6a44400

Please sign in to comment.