spec/integration/preview_spec.rb in alephant-preview-0.5.0 vs spec/integration/preview_spec.rb in alephant-preview-0.5.1
- old
+ new
@@ -4,11 +4,11 @@
include Rack::Test::Methods
let (:app) { subject }
describe "preview endpoint (GET /preview/{id}/{template}/{region}/{fixture})" do
describe "content" do
- expected_time = 123_456_789
+ expected_time = "123456789"
context "with valid data" do
before(:each) do
allow(Time).to receive(:now).and_return(expected_time)
@@ -37,11 +37,11 @@
end
end
describe "component endpoint (GET /component/{id}/{template}/{fixture})" do
describe "content" do
- expected_time = 123_456_789
+ expected_time = "123456789"
before(:each) do
allow(Time).to receive(:now).and_return(expected_time)
get "/component/#{id}/#{template}/#{fixture}"
@@ -115,11 +115,11 @@
end
end
describe 'component batch endpoint (GET /components/batch?components[#{id}]=#{id})' do
describe "content" do
- expected_time = 123_456_789
+ expected_time = "123456789"
before(:each) do
allow(Time).to receive(:now).and_return(expected_time)
get "/components/batch?components[#{id}][component]=#{id}&components[#{id}][options][fixture]=#{id}"
@@ -200,10 +200,10 @@
end
end
describe "component batch endpoint (POST /components/batch" do
describe "content" do
- expected_time = 123_456_789
+ expected_time = "123456789"
before(:each) do
allow(Time).to receive(:now).and_return(expected_time)
post "/components/batch", {