abrasf-desif 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +55 -0
- data/Rakefile +24 -0
- data/app/controllers/abrasf/desif/application_controller.rb +8 -0
- data/app/controllers/abrasf/desif/cities_controller.rb +12 -0
- data/app/controllers/abrasf/desif/city_tax_codes_controller.rb +71 -0
- data/app/controllers/abrasf/desif/service_items_controller.rb +29 -0
- data/app/controllers/abrasf/desif/tax_codes_controller.rb +26 -0
- data/app/decorators/abrasf/desif/tax_code_decorator.rb +27 -0
- data/app/models/abrasf/desif.rb +9 -0
- data/app/models/abrasf/desif/city.rb +15 -0
- data/app/models/abrasf/desif/city_tax_code.rb +29 -0
- data/app/models/abrasf/desif/service_item.rb +10 -0
- data/app/models/abrasf/desif/tax_code.rb +16 -0
- data/app/views/abrasf/desif/cities/_city.html.erb +5 -0
- data/app/views/abrasf/desif/cities/index.html.erb +15 -0
- data/app/views/abrasf/desif/city_tax_codes/_city_tax_code.html.erb +10 -0
- data/app/views/abrasf/desif/city_tax_codes/_form.html.erb +41 -0
- data/app/views/abrasf/desif/city_tax_codes/edit.html.erb +6 -0
- data/app/views/abrasf/desif/city_tax_codes/index.html.erb +25 -0
- data/app/views/abrasf/desif/city_tax_codes/new.html.erb +5 -0
- data/app/views/abrasf/desif/city_tax_codes/show.html.erb +34 -0
- data/app/views/abrasf/desif/service_items/_service_item.html.erb +5 -0
- data/app/views/abrasf/desif/service_items/index.html.erb +7 -0
- data/app/views/abrasf/desif/tax_codes/_tax_code.html.erb +5 -0
- data/app/views/abrasf/desif/tax_codes/index.csv.erb +3 -0
- data/app/views/abrasf/desif/tax_codes/index.html.erb +16 -0
- data/config/locales/en.yml +56 -0
- data/config/locales/pt.yml +60 -0
- data/config/routes.rb +6 -0
- data/db/migrate/20160408160535_create_desif_abrasf_service_items.rb +7 -0
- data/db/migrate/20160412200143_create_abrasf_desif_tax_codes.rb +8 -0
- data/db/migrate/20160413201725_create_abrasf_desif_cities.rb +8 -0
- data/db/migrate/20160418190116_create_abrasf_desif_city_tax_code.rb +14 -0
- data/db/seeds.rb +22 -0
- data/db/seeds/cities.csv +5565 -0
- data/db/seeds/service_items.csv +194 -0
- data/db/seeds/tax_codes.csv +251 -0
- data/lib/abrasf.rb +6 -0
- data/lib/abrasf/desif.rb +9 -0
- data/lib/abrasf/desif/engine.rb +30 -0
- data/lib/abrasf/desif/tax_code_to_city.rb +38 -0
- data/lib/abrasf/desif/version.rb +7 -0
- data/lib/abrasf_desif.rb +3 -0
- data/lib/tasks/desif_abrasf_tasks.rake +21 -0
- data/spec/controllers/abrasf/desif/cities_controller_spec.rb +26 -0
- data/spec/controllers/abrasf/desif/city_tax_codes_controller_spec.rb +130 -0
- data/spec/controllers/abrasf/desif/service_items_controller_spec.rb +31 -0
- data/spec/controllers/abrasf/desif/tax_codes_controller_spec.rb +27 -0
- data/spec/decorators/abrasf/desif/tax_code_decorator_spec.rb +31 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +46 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +26087 -0
- data/spec/dummy/log/test.log +80851 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjYnbNV-4H2wB22qA8vak8p70VzibwrJDHRRc9N73wM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pf/Pfv3CJAV6pC6GNSukkfNn8rDJ_akR2vXUJHKfFGfEec.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qv/Qvh8ZRaow--u_cxJTKTRSBmhxHZ2gCInZpLH9aOQ7j4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wj/WjUfRWFfV2RfTLWhS9YXsOE1vFE663g4nIf-XAjQpHk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fi/fiWk-EIFM9DWQRQ_5EJjHWgch83bbHfvO4pzuUQE5KM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hU/hUrafJ93523F4gu5J0fKI4s_Xwe8hAe471ftz89sRmA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yD/yDtRlN_BF4e3gVA0QORRB8oUdMNc1ttnGrN2N2cGVZ8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yz/yz2DRlMVn6xJ6XlrKZAcHX7ZU3Rl0k3MmwyIIfiDA0I.cache +0 -0
- data/spec/factories/city.rb +9 -0
- data/spec/factories/city_tax_code.rb +10 -0
- data/spec/factories/service_item.rb +8 -0
- data/spec/factories/tax_code.rb +9 -0
- data/spec/features/city_spec.rb +12 -0
- data/spec/features/city_tax_codes_spec.rb +63 -0
- data/spec/features/service_item_spec.rb +12 -0
- data/spec/features/tax_codes_spec.rb +15 -0
- data/spec/lib/tax_code_to_city_spec.rb +25 -0
- data/spec/models/abrasf/desif/city_spec.rb +13 -0
- data/spec/models/abrasf/desif/city_tax_code_spec.rb +21 -0
- data/spec/models/abrasf/desif/service_item_spec.rb +10 -0
- data/spec/models/abrasf/desif/tax_code_spec.rb +13 -0
- data/spec/rails_helper.rb +62 -0
- data/spec/routing/abrasf/desif/cities_routing_spec.rb +16 -0
- data/spec/routing/abrasf/desif/city_tax_codes_routing_spec.rb +51 -0
- data/spec/routing/abrasf/desif/service_items_routing_spec.rb +16 -0
- data/spec/routing/abrasf/desif/tax_codes_routing_spec.rb +16 -0
- data/spec/spec_helper.rb +49 -0
- data/spec/support/factory_girl.rb +11 -0
- data/spec/support/shoulda_matcher.rb +13 -0
- data/spec/tasks/desif_abrasf_tasks_rake_spec.rb +36 -0
- data/spec/views/abrasf/desif/cities/_city.html.erb_spec.rb +11 -0
- data/spec/views/abrasf/desif/cities/index.html.erb_spec.rb +13 -0
- data/spec/views/abrasf/desif/service_items/_service_item.html.erb_spec.rb +11 -0
- data/spec/views/abrasf/desif/service_items/index.html.erb_spec.rb +13 -0
- data/spec/views/abrasf/desif/tax_codes/_tax_code.html.erb_spec.rb +12 -0
- data/spec/views/abrasf/desif/tax_codes/index.html.erb_spec.rb +20 -0
- metadata +376 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Abrasf
|
4
|
+
module Desif
|
5
|
+
RSpec.describe TaxCode, type: :model do
|
6
|
+
it { is_expected.to belong_to :service_item }
|
7
|
+
|
8
|
+
it { is_expected.to validate_presence_of :id }
|
9
|
+
it { is_expected.to validate_presence_of :description }
|
10
|
+
it { is_expected.to validate_length_of(:description).is_at_most 200 }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
4
|
+
ENV['RAILS_ENV'] ||= 'test'
|
5
|
+
require File.expand_path('../../spec/dummy/config/environment', __FILE__)
|
6
|
+
# Prevent database truncation if the environment is production
|
7
|
+
abort('The Rails env is running in production mode!') if Rails.env.production?
|
8
|
+
require 'spec_helper'
|
9
|
+
require 'shoulda-matchers'
|
10
|
+
require 'rspec/rails'
|
11
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
12
|
+
|
13
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
14
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
15
|
+
# run as spec files by default. This means that files in spec/support that end
|
16
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
17
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
18
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
19
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
20
|
+
#
|
21
|
+
# The following line is provided for convenience purposes. It has the downside
|
22
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
23
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
24
|
+
# require only the support files necessary.
|
25
|
+
#
|
26
|
+
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
27
|
+
ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
|
28
|
+
Dir[File.join(ENGINE_RAILS_ROOT, 'spec/support/**/*.rb')].each { |f| require f }
|
29
|
+
|
30
|
+
# Checks for pending migration and applies them before tests are run.
|
31
|
+
# If you are not using ActiveRecord, you can remove this line.
|
32
|
+
ActiveRecord::Migration.maintain_test_schema!
|
33
|
+
|
34
|
+
RSpec.configure do |config|
|
35
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
36
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
37
|
+
|
38
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
39
|
+
# examples within a transaction, remove the following line or assign false
|
40
|
+
# instead of true.
|
41
|
+
config.use_transactional_fixtures = true
|
42
|
+
|
43
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
44
|
+
# based on their file location, for example enabling you to call `get` and
|
45
|
+
# `post` in specs under `spec/controllers`.
|
46
|
+
#
|
47
|
+
# You can disable this behaviour by removing the line below, and instead
|
48
|
+
# explicitly tag your specs with their type, e.g.:
|
49
|
+
#
|
50
|
+
# RSpec.describe UsersController, :type => :controller do
|
51
|
+
# # ...
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
# The different available types are documented in the features, such as in
|
55
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
56
|
+
config.infer_spec_type_from_file_location!
|
57
|
+
|
58
|
+
# Filter lines from Rails gems in backtraces.
|
59
|
+
config.filter_rails_from_backtrace!
|
60
|
+
# arbitrary gems may also be filtered via:
|
61
|
+
# config.filter_gems_from_backtrace("gem name")
|
62
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Abrasf
|
4
|
+
module Desif
|
5
|
+
RSpec.describe CitiesController, type: :routing do
|
6
|
+
describe 'routing' do
|
7
|
+
routes { Engine.routes }
|
8
|
+
|
9
|
+
it do
|
10
|
+
expect(get: cities_path)
|
11
|
+
.to route_to 'abrasf/desif/cities#index'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Abrasf
|
4
|
+
module Desif
|
5
|
+
RSpec.describe CityTaxCodesController, type: :routing do
|
6
|
+
describe 'routing' do
|
7
|
+
routes { Engine.routes }
|
8
|
+
|
9
|
+
it do
|
10
|
+
expect(get: 'city_tax_codes')
|
11
|
+
.to route_to 'abrasf/desif/city_tax_codes#index'
|
12
|
+
end
|
13
|
+
|
14
|
+
it do
|
15
|
+
expect(get: 'city_tax_codes/new')
|
16
|
+
.to route_to 'abrasf/desif/city_tax_codes#new'
|
17
|
+
end
|
18
|
+
|
19
|
+
it do
|
20
|
+
expect(get: 'city_tax_codes/1')
|
21
|
+
.to route_to 'abrasf/desif/city_tax_codes#show', id: '1'
|
22
|
+
end
|
23
|
+
|
24
|
+
it do
|
25
|
+
expect(get: 'city_tax_codes/1/edit')
|
26
|
+
.to route_to 'abrasf/desif/city_tax_codes#edit', id: '1'
|
27
|
+
end
|
28
|
+
|
29
|
+
it do
|
30
|
+
expect(post: 'city_tax_codes')
|
31
|
+
.to route_to 'abrasf/desif/city_tax_codes#create'
|
32
|
+
end
|
33
|
+
|
34
|
+
it do
|
35
|
+
expect(put: 'city_tax_codes/1')
|
36
|
+
.to route_to 'abrasf/desif/city_tax_codes#update', id: '1'
|
37
|
+
end
|
38
|
+
|
39
|
+
it do
|
40
|
+
expect(patch: 'city_tax_codes/1')
|
41
|
+
.to route_to 'abrasf/desif/city_tax_codes#update', id: '1'
|
42
|
+
end
|
43
|
+
|
44
|
+
it do
|
45
|
+
expect(delete: 'city_tax_codes/1')
|
46
|
+
.to route_to 'abrasf/desif/city_tax_codes#destroy', id: '1'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Abrasf
|
4
|
+
module Desif
|
5
|
+
RSpec.describe ServiceItemsController, type: :routing do
|
6
|
+
describe 'routing' do
|
7
|
+
routes { Engine.routes }
|
8
|
+
|
9
|
+
it do
|
10
|
+
expect(get: service_items_path)
|
11
|
+
.to route_to 'abrasf/desif/service_items#index'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Abrasf
|
4
|
+
module Desif
|
5
|
+
RSpec.describe TaxCodesController, type: :routing do
|
6
|
+
describe 'routing' do
|
7
|
+
routes { Engine.routes }
|
8
|
+
|
9
|
+
it do
|
10
|
+
expect(get: tax_codes_path)
|
11
|
+
.to route_to 'abrasf/desif/tax_codes#index'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# This file was generated by the `rails generate rspec:install` command.
|
4
|
+
# Conventionally, all specs live under a `spec` directory,
|
5
|
+
# which RSpec adds to the `$LOAD_PATH`.
|
6
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
7
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
8
|
+
# files.
|
9
|
+
#
|
10
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
11
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
12
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
13
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
14
|
+
# a separate helper file that requires the additional dependencies and performs
|
15
|
+
# the additional setup, and require it from the spec files that actually need
|
16
|
+
# it.
|
17
|
+
#
|
18
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
19
|
+
# users commonly want.
|
20
|
+
#
|
21
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
22
|
+
|
23
|
+
require 'codeclimate-test-reporter'
|
24
|
+
CodeClimate::TestReporter.start
|
25
|
+
|
26
|
+
RSpec.configure do |config|
|
27
|
+
# rspec-expectations config goes here. You can use an alternate
|
28
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
29
|
+
# assertions if you prefer.
|
30
|
+
config.expect_with :rspec do |expectations|
|
31
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
32
|
+
# and `failure_message` of custom matchers include text for helper methods
|
33
|
+
# defined using `chain`, e.g.:
|
34
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
35
|
+
# # => "be bigger than 2 and smaller than 4"
|
36
|
+
# ...rather than:
|
37
|
+
# # => "be bigger than 2"
|
38
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
39
|
+
end
|
40
|
+
|
41
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
42
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
43
|
+
config.mock_with :rspec do |mocks|
|
44
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
45
|
+
# a real object. This is generally recommended, and will default to
|
46
|
+
# `true` in RSpec 4.
|
47
|
+
mocks.verify_partial_doubles = true
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Shoulda::Matchers.configure do |config|
|
4
|
+
config.integrate do |with|
|
5
|
+
with.test_framework :rspec
|
6
|
+
with.library :rails
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.include(Shoulda::Matchers::ActiveModel, type: :model)
|
12
|
+
config.include(Shoulda::Matchers::ActiveRecord, type: :model)
|
13
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rake'
|
4
|
+
|
5
|
+
describe 'desif_abrasf_tasks' do
|
6
|
+
before do
|
7
|
+
Rake.application.rake_require 'tasks/desif_abrasf_tasks'
|
8
|
+
Rake::Task.define_task :environment
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'abrasf-desif:db:seed' do
|
12
|
+
let(:rake) { 'abrasf-desif:db:seed' }
|
13
|
+
|
14
|
+
before do
|
15
|
+
allow(Abrasf::Desif::Engine).to receive :load_seed
|
16
|
+
Rake.application.invoke_task rake
|
17
|
+
end
|
18
|
+
|
19
|
+
it { expect(Abrasf::Desif::Engine).to have_received :load_seed }
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'abrasf-desif:city_tax_code:seed[city_ibge]' do
|
23
|
+
let(:id) { '234567' }
|
24
|
+
let(:rake) { "abrasf-desif:city_tax_code:seed[#{id}]" }
|
25
|
+
|
26
|
+
before do
|
27
|
+
allow(Abrasf::Desif::TaxCodeToCity).to receive :create
|
28
|
+
Rake.application.invoke_task rake
|
29
|
+
end
|
30
|
+
|
31
|
+
it do
|
32
|
+
expect(Abrasf::Desif::TaxCodeToCity)
|
33
|
+
.to have_received(:create).with(city_id: id)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'abrasf/desif/cities/_city', type: :view do
|
4
|
+
let(:city) { double id: 1234, name: 'city', federative_unit: 'xy' }
|
5
|
+
before do
|
6
|
+
render partial: 'abrasf/desif/cities/city',
|
7
|
+
locals: { city: city }
|
8
|
+
end
|
9
|
+
|
10
|
+
it { expect(rendered).to have_content '1234 city xy' }
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'abrasf/desif/cities/index', type: :view do
|
4
|
+
before do
|
5
|
+
assign :cities, [Abrasf::Desif::City.new]
|
6
|
+
|
7
|
+
render
|
8
|
+
end
|
9
|
+
let(:result) { 'City Table' }
|
10
|
+
|
11
|
+
it { expect(rendered).to have_content result }
|
12
|
+
it { expect(view).to render_template partial: '_city' }
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'abrasf/desif/service_items/_service_item', type: :view do
|
4
|
+
let(:service) { double id: 1234, description: 'service' }
|
5
|
+
before do
|
6
|
+
render partial: 'abrasf/desif/service_items/service_item',
|
7
|
+
locals: { service_item: service }
|
8
|
+
end
|
9
|
+
|
10
|
+
it { expect(rendered).to have_content '1234 service' }
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'abrasf/desif/service_items/index', type: :view do
|
4
|
+
before do
|
5
|
+
assign :service_items, [Abrasf::Desif::ServiceItem.new]
|
6
|
+
|
7
|
+
render
|
8
|
+
end
|
9
|
+
let(:result) { 'Service Item' }
|
10
|
+
|
11
|
+
it { expect(rendered).to have_content result }
|
12
|
+
it { expect(view).to render_template partial: '_service_item' }
|
13
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'abrasf/desif/tax_codes/_tax_code', type: :view do
|
4
|
+
before do
|
5
|
+
tax_code = double id_mask: 1234, description: 'hi', service_item_id: 171
|
6
|
+
|
7
|
+
render partial: 'abrasf/desif/tax_codes/tax_code',
|
8
|
+
locals: { tax_code: tax_code }
|
9
|
+
end
|
10
|
+
|
11
|
+
it { expect(rendered).to have_content '1234 hi 171' }
|
12
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'abrasf/desif/tax_codes/index', type: :view do
|
4
|
+
let(:tax_code) do
|
5
|
+
double id_mask: 1234, description: 'hi', service_item_id: 171
|
6
|
+
end
|
7
|
+
|
8
|
+
before do
|
9
|
+
assign :tax_codes, [tax_code]
|
10
|
+
stub_template 'abrasf/desif/tax_codes/index/_tax_code.html.erb' => nil
|
11
|
+
|
12
|
+
render
|
13
|
+
end
|
14
|
+
|
15
|
+
let(:result) { 'Code Description Subitem Service Item' }
|
16
|
+
|
17
|
+
it { expect(rendered).to have_content result }
|
18
|
+
it { expect(rendered).to have_link 'Download CSV' }
|
19
|
+
it { expect(view).to render_template partial: '_tax_code' }
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,376 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: abrasf-desif
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marco Moura
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: shoulda-matchers
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: codeclimate-test-reporter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: capybara
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Tables of DES-IF
|
126
|
+
email: marco.moura@gmail.com
|
127
|
+
executables: []
|
128
|
+
extensions: []
|
129
|
+
extra_rdoc_files: []
|
130
|
+
files:
|
131
|
+
- MIT-LICENSE
|
132
|
+
- README.md
|
133
|
+
- Rakefile
|
134
|
+
- app/controllers/abrasf/desif/application_controller.rb
|
135
|
+
- app/controllers/abrasf/desif/cities_controller.rb
|
136
|
+
- app/controllers/abrasf/desif/city_tax_codes_controller.rb
|
137
|
+
- app/controllers/abrasf/desif/service_items_controller.rb
|
138
|
+
- app/controllers/abrasf/desif/tax_codes_controller.rb
|
139
|
+
- app/decorators/abrasf/desif/tax_code_decorator.rb
|
140
|
+
- app/models/abrasf/desif.rb
|
141
|
+
- app/models/abrasf/desif/city.rb
|
142
|
+
- app/models/abrasf/desif/city_tax_code.rb
|
143
|
+
- app/models/abrasf/desif/service_item.rb
|
144
|
+
- app/models/abrasf/desif/tax_code.rb
|
145
|
+
- app/views/abrasf/desif/cities/_city.html.erb
|
146
|
+
- app/views/abrasf/desif/cities/index.html.erb
|
147
|
+
- app/views/abrasf/desif/city_tax_codes/_city_tax_code.html.erb
|
148
|
+
- app/views/abrasf/desif/city_tax_codes/_form.html.erb
|
149
|
+
- app/views/abrasf/desif/city_tax_codes/edit.html.erb
|
150
|
+
- app/views/abrasf/desif/city_tax_codes/index.html.erb
|
151
|
+
- app/views/abrasf/desif/city_tax_codes/new.html.erb
|
152
|
+
- app/views/abrasf/desif/city_tax_codes/show.html.erb
|
153
|
+
- app/views/abrasf/desif/service_items/_service_item.html.erb
|
154
|
+
- app/views/abrasf/desif/service_items/index.html.erb
|
155
|
+
- app/views/abrasf/desif/tax_codes/_tax_code.html.erb
|
156
|
+
- app/views/abrasf/desif/tax_codes/index.csv.erb
|
157
|
+
- app/views/abrasf/desif/tax_codes/index.html.erb
|
158
|
+
- config/locales/en.yml
|
159
|
+
- config/locales/pt.yml
|
160
|
+
- config/routes.rb
|
161
|
+
- db/migrate/20160408160535_create_desif_abrasf_service_items.rb
|
162
|
+
- db/migrate/20160412200143_create_abrasf_desif_tax_codes.rb
|
163
|
+
- db/migrate/20160413201725_create_abrasf_desif_cities.rb
|
164
|
+
- db/migrate/20160418190116_create_abrasf_desif_city_tax_code.rb
|
165
|
+
- db/seeds.rb
|
166
|
+
- db/seeds/cities.csv
|
167
|
+
- db/seeds/service_items.csv
|
168
|
+
- db/seeds/tax_codes.csv
|
169
|
+
- lib/abrasf.rb
|
170
|
+
- lib/abrasf/desif.rb
|
171
|
+
- lib/abrasf/desif/engine.rb
|
172
|
+
- lib/abrasf/desif/tax_code_to_city.rb
|
173
|
+
- lib/abrasf/desif/version.rb
|
174
|
+
- lib/abrasf_desif.rb
|
175
|
+
- lib/tasks/desif_abrasf_tasks.rake
|
176
|
+
- spec/controllers/abrasf/desif/cities_controller_spec.rb
|
177
|
+
- spec/controllers/abrasf/desif/city_tax_codes_controller_spec.rb
|
178
|
+
- spec/controllers/abrasf/desif/service_items_controller_spec.rb
|
179
|
+
- spec/controllers/abrasf/desif/tax_codes_controller_spec.rb
|
180
|
+
- spec/decorators/abrasf/desif/tax_code_decorator_spec.rb
|
181
|
+
- spec/dummy/README.rdoc
|
182
|
+
- spec/dummy/Rakefile
|
183
|
+
- spec/dummy/app/assets/javascripts/application.js
|
184
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
185
|
+
- spec/dummy/app/controllers/application_controller.rb
|
186
|
+
- spec/dummy/app/helpers/application_helper.rb
|
187
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
188
|
+
- spec/dummy/bin/bundle
|
189
|
+
- spec/dummy/bin/rails
|
190
|
+
- spec/dummy/bin/rake
|
191
|
+
- spec/dummy/bin/setup
|
192
|
+
- spec/dummy/config.ru
|
193
|
+
- spec/dummy/config/application.rb
|
194
|
+
- spec/dummy/config/boot.rb
|
195
|
+
- spec/dummy/config/database.yml
|
196
|
+
- spec/dummy/config/environment.rb
|
197
|
+
- spec/dummy/config/environments/development.rb
|
198
|
+
- spec/dummy/config/environments/production.rb
|
199
|
+
- spec/dummy/config/environments/test.rb
|
200
|
+
- spec/dummy/config/initializers/assets.rb
|
201
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
202
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
203
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
204
|
+
- spec/dummy/config/initializers/inflections.rb
|
205
|
+
- spec/dummy/config/initializers/mime_types.rb
|
206
|
+
- spec/dummy/config/initializers/session_store.rb
|
207
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
208
|
+
- spec/dummy/config/locales/en.yml
|
209
|
+
- spec/dummy/config/routes.rb
|
210
|
+
- spec/dummy/config/secrets.yml
|
211
|
+
- spec/dummy/db/development.sqlite3
|
212
|
+
- spec/dummy/db/schema.rb
|
213
|
+
- spec/dummy/db/test.sqlite3
|
214
|
+
- spec/dummy/log/development.log
|
215
|
+
- spec/dummy/log/test.log
|
216
|
+
- spec/dummy/public/404.html
|
217
|
+
- spec/dummy/public/422.html
|
218
|
+
- spec/dummy/public/500.html
|
219
|
+
- spec/dummy/public/favicon.ico
|
220
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
221
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
|
222
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
223
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjYnbNV-4H2wB22qA8vak8p70VzibwrJDHRRc9N73wM.cache
|
224
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
|
225
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Pf/Pfv3CJAV6pC6GNSukkfNn8rDJ_akR2vXUJHKfFGfEec.cache
|
226
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Qv/Qvh8ZRaow--u_cxJTKTRSBmhxHZ2gCInZpLH9aOQ7j4.cache
|
227
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wj/WjUfRWFfV2RfTLWhS9YXsOE1vFE663g4nIf-XAjQpHk.cache
|
228
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
|
229
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fi/fiWk-EIFM9DWQRQ_5EJjHWgch83bbHfvO4pzuUQE5KM.cache
|
230
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
|
231
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hU/hUrafJ93523F4gu5J0fKI4s_Xwe8hAe471ftz89sRmA.cache
|
232
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
233
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
234
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/yD/yDtRlN_BF4e3gVA0QORRB8oUdMNc1ttnGrN2N2cGVZ8.cache
|
235
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/yz/yz2DRlMVn6xJ6XlrKZAcHX7ZU3Rl0k3MmwyIIfiDA0I.cache
|
236
|
+
- spec/factories/city.rb
|
237
|
+
- spec/factories/city_tax_code.rb
|
238
|
+
- spec/factories/service_item.rb
|
239
|
+
- spec/factories/tax_code.rb
|
240
|
+
- spec/features/city_spec.rb
|
241
|
+
- spec/features/city_tax_codes_spec.rb
|
242
|
+
- spec/features/service_item_spec.rb
|
243
|
+
- spec/features/tax_codes_spec.rb
|
244
|
+
- spec/lib/tax_code_to_city_spec.rb
|
245
|
+
- spec/models/abrasf/desif/city_spec.rb
|
246
|
+
- spec/models/abrasf/desif/city_tax_code_spec.rb
|
247
|
+
- spec/models/abrasf/desif/service_item_spec.rb
|
248
|
+
- spec/models/abrasf/desif/tax_code_spec.rb
|
249
|
+
- spec/rails_helper.rb
|
250
|
+
- spec/routing/abrasf/desif/cities_routing_spec.rb
|
251
|
+
- spec/routing/abrasf/desif/city_tax_codes_routing_spec.rb
|
252
|
+
- spec/routing/abrasf/desif/service_items_routing_spec.rb
|
253
|
+
- spec/routing/abrasf/desif/tax_codes_routing_spec.rb
|
254
|
+
- spec/spec_helper.rb
|
255
|
+
- spec/support/factory_girl.rb
|
256
|
+
- spec/support/shoulda_matcher.rb
|
257
|
+
- spec/tasks/desif_abrasf_tasks_rake_spec.rb
|
258
|
+
- spec/views/abrasf/desif/cities/_city.html.erb_spec.rb
|
259
|
+
- spec/views/abrasf/desif/cities/index.html.erb_spec.rb
|
260
|
+
- spec/views/abrasf/desif/service_items/_service_item.html.erb_spec.rb
|
261
|
+
- spec/views/abrasf/desif/service_items/index.html.erb_spec.rb
|
262
|
+
- spec/views/abrasf/desif/tax_codes/_tax_code.html.erb_spec.rb
|
263
|
+
- spec/views/abrasf/desif/tax_codes/index.html.erb_spec.rb
|
264
|
+
homepage: https://github.com/marcomoura/abrasf-desif
|
265
|
+
licenses:
|
266
|
+
- MIT
|
267
|
+
metadata: {}
|
268
|
+
post_install_message:
|
269
|
+
rdoc_options: []
|
270
|
+
require_paths:
|
271
|
+
- lib
|
272
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: '0'
|
277
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
|
+
requirements:
|
279
|
+
- - ">="
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: '0'
|
282
|
+
requirements: []
|
283
|
+
rubyforge_project:
|
284
|
+
rubygems_version: 2.4.8
|
285
|
+
signing_key:
|
286
|
+
specification_version: 4
|
287
|
+
summary: Abrasf Desif.
|
288
|
+
test_files:
|
289
|
+
- spec/routing/abrasf/desif/city_tax_codes_routing_spec.rb
|
290
|
+
- spec/routing/abrasf/desif/cities_routing_spec.rb
|
291
|
+
- spec/routing/abrasf/desif/service_items_routing_spec.rb
|
292
|
+
- spec/routing/abrasf/desif/tax_codes_routing_spec.rb
|
293
|
+
- spec/tasks/desif_abrasf_tasks_rake_spec.rb
|
294
|
+
- spec/rails_helper.rb
|
295
|
+
- spec/views/abrasf/desif/cities/index.html.erb_spec.rb
|
296
|
+
- spec/views/abrasf/desif/cities/_city.html.erb_spec.rb
|
297
|
+
- spec/views/abrasf/desif/service_items/_service_item.html.erb_spec.rb
|
298
|
+
- spec/views/abrasf/desif/service_items/index.html.erb_spec.rb
|
299
|
+
- spec/views/abrasf/desif/tax_codes/_tax_code.html.erb_spec.rb
|
300
|
+
- spec/views/abrasf/desif/tax_codes/index.html.erb_spec.rb
|
301
|
+
- spec/lib/tax_code_to_city_spec.rb
|
302
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
303
|
+
- spec/dummy/app/helpers/application_helper.rb
|
304
|
+
- spec/dummy/app/controllers/application_controller.rb
|
305
|
+
- spec/dummy/app/assets/javascripts/application.js
|
306
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
307
|
+
- spec/dummy/README.rdoc
|
308
|
+
- spec/dummy/public/favicon.ico
|
309
|
+
- spec/dummy/public/422.html
|
310
|
+
- spec/dummy/public/404.html
|
311
|
+
- spec/dummy/public/500.html
|
312
|
+
- spec/dummy/db/schema.rb
|
313
|
+
- spec/dummy/db/test.sqlite3
|
314
|
+
- spec/dummy/db/development.sqlite3
|
315
|
+
- spec/dummy/config/routes.rb
|
316
|
+
- spec/dummy/config/boot.rb
|
317
|
+
- spec/dummy/config/secrets.yml
|
318
|
+
- spec/dummy/config/environment.rb
|
319
|
+
- spec/dummy/config/environments/test.rb
|
320
|
+
- spec/dummy/config/environments/development.rb
|
321
|
+
- spec/dummy/config/environments/production.rb
|
322
|
+
- spec/dummy/config/application.rb
|
323
|
+
- spec/dummy/config/locales/en.yml
|
324
|
+
- spec/dummy/config/initializers/session_store.rb
|
325
|
+
- spec/dummy/config/initializers/inflections.rb
|
326
|
+
- spec/dummy/config/initializers/mime_types.rb
|
327
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
328
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
329
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
330
|
+
- spec/dummy/config/initializers/assets.rb
|
331
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
332
|
+
- spec/dummy/config/database.yml
|
333
|
+
- spec/dummy/config.ru
|
334
|
+
- spec/dummy/log/test.log
|
335
|
+
- spec/dummy/log/development.log
|
336
|
+
- spec/dummy/bin/bundle
|
337
|
+
- spec/dummy/bin/rake
|
338
|
+
- spec/dummy/bin/setup
|
339
|
+
- spec/dummy/bin/rails
|
340
|
+
- spec/dummy/Rakefile
|
341
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
|
342
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
343
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Qv/Qvh8ZRaow--u_cxJTKTRSBmhxHZ2gCInZpLH9aOQ7j4.cache
|
344
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
345
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hU/hUrafJ93523F4gu5J0fKI4s_Xwe8hAe471ftz89sRmA.cache
|
346
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Pf/Pfv3CJAV6pC6GNSukkfNn8rDJ_akR2vXUJHKfFGfEec.cache
|
347
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/yz/yz2DRlMVn6xJ6XlrKZAcHX7ZU3Rl0k3MmwyIIfiDA0I.cache
|
348
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
|
349
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/yD/yDtRlN_BF4e3gVA0QORRB8oUdMNc1ttnGrN2N2cGVZ8.cache
|
350
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
|
351
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
352
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjYnbNV-4H2wB22qA8vak8p70VzibwrJDHRRc9N73wM.cache
|
353
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
|
354
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fi/fiWk-EIFM9DWQRQ_5EJjHWgch83bbHfvO4pzuUQE5KM.cache
|
355
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wj/WjUfRWFfV2RfTLWhS9YXsOE1vFE663g4nIf-XAjQpHk.cache
|
356
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
357
|
+
- spec/controllers/abrasf/desif/service_items_controller_spec.rb
|
358
|
+
- spec/controllers/abrasf/desif/city_tax_codes_controller_spec.rb
|
359
|
+
- spec/controllers/abrasf/desif/tax_codes_controller_spec.rb
|
360
|
+
- spec/controllers/abrasf/desif/cities_controller_spec.rb
|
361
|
+
- spec/features/city_tax_codes_spec.rb
|
362
|
+
- spec/features/city_spec.rb
|
363
|
+
- spec/features/service_item_spec.rb
|
364
|
+
- spec/features/tax_codes_spec.rb
|
365
|
+
- spec/decorators/abrasf/desif/tax_code_decorator_spec.rb
|
366
|
+
- spec/support/shoulda_matcher.rb
|
367
|
+
- spec/support/factory_girl.rb
|
368
|
+
- spec/spec_helper.rb
|
369
|
+
- spec/models/abrasf/desif/tax_code_spec.rb
|
370
|
+
- spec/models/abrasf/desif/city_tax_code_spec.rb
|
371
|
+
- spec/models/abrasf/desif/city_spec.rb
|
372
|
+
- spec/models/abrasf/desif/service_item_spec.rb
|
373
|
+
- spec/factories/city_tax_code.rb
|
374
|
+
- spec/factories/city.rb
|
375
|
+
- spec/factories/tax_code.rb
|
376
|
+
- spec/factories/service_item.rb
|