Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
add evidence factory
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkosi committed May 2, 2016
1 parent c407271 commit 40197c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/infractions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe InfractionsController, type: :controller do
render_views

let(:evidence) { Evidence.new }
let(:evidence) { FactoryGirl.create(:evidence) }
let!(:infraction) do
FactoryGirl.create(:infraction,
lat: 13.37,
Expand Down
4 changes: 4 additions & 0 deletions spec/factories/evidence.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FactoryGirl.define do
factory :evidence do
end
end

0 comments on commit 40197c7

Please sign in to comment.