Skip to content

Commit

Permalink
Rename also the test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
axilleas committed Jun 25, 2014
1 parent f96fea3 commit 676b108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 4 additions & 2 deletions spec/factories/builds.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# == Schema Information
#
# Table name: builds
# Table name: koji_builds
#
# id :integer not null, primary key
# name :string(255)
Expand All @@ -13,6 +13,8 @@
# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
factory :build do
factory :koji_build do |b|
b.build_id '12345'
b.fedora_rpm_id 42
end
end
9 changes: 4 additions & 5 deletions spec/models/build_spec.rb → spec/models/koji_build_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# == Schema Information
#
# Table name: builds
# Table name: koji_builds
#
# id :integer not null, primary key
# name :string(255)
Expand All @@ -12,12 +12,11 @@

require 'rails_helper'

describe Build do

let (:koji_build) { Build.new(build_id: 12345) }
describe KojiBuild do

it 'has valid url' do
expect(koji_build.build_url).to match(/#{Regexp.quote(Build::KOJI_BUILD_URL)}\d+/)
expect(build(:koji_build).build_url).to \
match(/#{Regexp.quote(KojiBuild::KOJI_BUILD_URL)}\d+/)
end

end

0 comments on commit 676b108

Please sign in to comment.