mascot-rails 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ describe Mascot::Extensions::IndexRequestPath do
9
9
  before { subject.process_resources(root) }
10
10
  it "changes /index.html request_path to /" do
11
11
  # require "pry" ; binding.pry
12
- expect(root.get_resource("/").request_path).to eql("/")
12
+ expect(root.get("/").request_path).to eql("/")
13
13
  end
14
14
  end
15
15
  end
@@ -22,8 +22,8 @@ describe Mascot::SiteController, type: :controller do
22
22
  it "#current_page" do
23
23
  expect(subject.send(:current_page).asset.path).to eql(resource.asset.path)
24
24
  end
25
- it "#root" do
26
- expect(subject.send(:root)).to eql(Mascot.configuration.root)
25
+ it "#resources" do
26
+ expect(subject.send(:resources)).to match_array(Mascot.configuration.site.resources)
27
27
  end
28
28
  end
29
29
  end
@@ -8,11 +8,11 @@ describe Mascot::RailsConfiguration do
8
8
  end
9
9
  it "excludes partials if false" do
10
10
  subject.partials = false
11
- expect(subject.root.resources.to_a.size).to eql(2)
11
+ expect(subject.root.flatten.size).to eql(2)
12
12
  end
13
13
  it "includes partials if true" do
14
14
  subject.partials = true
15
- expect(subject.root.resources.to_a.size).to eql(3)
15
+ expect(subject.root.flatten.size).to eql(3)
16
16
  end
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mascot-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-03 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.14
61
+ version: 0.1.15
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.1.14
68
+ version: 0.1.15
69
69
  description:
70
70
  email:
71
71
  - bradgessler@gmail.com
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - README.md
77
77
  - Rakefile
78
+ - app/controllers/concerns/mascot/site_pages.rb
78
79
  - app/controllers/mascot/site_controller.rb
79
80
  - app/helpers/mascot/application_helper.rb
80
81
  - config/routes.rb