mascot-rails 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,6 @@ describe Mascot do
16
16
  end
17
17
  end
18
18
  it "prepends Site#root_path to ActionController::Base.view_paths" do
19
- expect(ActionController::Base.view_paths.first.to_s).to eql(Mascot.configuration.site.root_path.to_s)
19
+ expect(ActionController::Base.view_paths.first.to_s).to eql(Mascot.site.root_path.to_s)
20
20
  end
21
21
  end
@@ -4,7 +4,7 @@ describe Mascot::SiteController, type: :controller do
4
4
  context "templated page" do
5
5
  render_views
6
6
  before { get :show, resource_path: "/time" }
7
- let(:resource) { Mascot.configuration.site.get("/time") }
7
+ let(:resource) { Mascot.site.get("/time") }
8
8
  it "is status 200" do
9
9
  expect(response.status).to eql(200)
10
10
  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 "#resources" do
26
- expect(subject.send(:resources)).to match_array(Mascot.configuration.site.resources)
25
+ it "#site" do
26
+ expect(subject.send(:site)).to eql(Mascot.site)
27
27
  end
28
28
  end
29
29
  end
@@ -3,16 +3,8 @@ require "spec_helper"
3
3
  describe Mascot::RailsConfiguration do
4
4
  subject { Mascot::RailsConfiguration.new }
5
5
  context "#partials" do
6
- it "excludes by default" do
7
- expect(subject.partials).to be false
8
- end
9
- it "excludes partials if false" do
10
- subject.partials = false
11
- expect(subject.root.flatten.size).to eql(2)
12
- end
13
- it "includes partials if true" do
14
- subject.partials = true
15
- expect(subject.root.flatten.size).to eql(3)
6
+ it "excludes partials" do
7
+ expect(subject.site.resources.size).to eql(2)
16
8
  end
17
9
  end
18
10
  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.15
4
+ version: 0.1.16
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-06 00:00:00.000000000 Z
11
+ date: 2016-09-08 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.15
61
+ version: 0.1.16
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.15
68
+ version: 0.1.16
69
69
  description:
70
70
  email:
71
71
  - bradgessler@gmail.com