sitepress-rails 1.0.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Sitepress::Extensions::IndexRequestPath do
4
- subject { Sitepress::Extensions::IndexRequestPath.new }
5
- let(:site) { Sitepress::Site.new(root_path: "spec/sites/sample") }
6
- let(:root) { site.root }
7
-
8
- context "#process_resources" do
9
- before { subject.process_resources(root) }
10
- it "changes /index.html request_path to /" do
11
- # require "pry" ; binding.pry
12
- expect(root.get("/").request_path).to eql("/")
13
- end
14
- end
15
- end
@@ -1,12 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Sitepress::Extensions::PartialsRemover do
4
- context ".partial?" do
5
- it "is true if begins with _" do
6
- expect(Sitepress::Extensions::PartialsRemover.partial?("/foo.bar/_buzz.haml")).to be true
7
- end
8
- it "is false if does not being with _" do
9
- expect(Sitepress::Extensions::PartialsRemover.partial?("/foo.bar/buzz.haml")).to be false
10
- end
11
- end
12
- end
@@ -1,9 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Sitepress::Extensions::RailsRequestPaths do
4
- context ".format_path" do
5
- it "converts /foo.bar/buzz.html to /foo.bar/buzz" do
6
- expect(Sitepress::Extensions::RailsRequestPaths.format_path("/foo.bar/buzz"))
7
- end
8
- end
9
- end