rename factory_girl_(rails) to factory_bot_(rails)

This commit is contained in:
Ralf Teusner
2017-11-15 15:18:07 +01:00
parent 951b71780c
commit 0e26ab98c8
68 changed files with 253 additions and 253 deletions

View File

@ -8,7 +8,7 @@ describe FileTree do
context 'for a media file' do
context 'for an audio file' do
let(:file) { FactoryGirl.build(:file, file_type: FactoryGirl.build(:dot_mp3)) }
let(:file) { FactoryBot.build(:file, file_type: FactoryGirl.build(:dot_mp3)) }
it 'is an audio file icon' do
expect(file_icon).to include('fa-file-audio-o')
@ -16,7 +16,7 @@ describe FileTree do
end
context 'for an image file' do
let(:file) { FactoryGirl.build(:file, file_type: FactoryGirl.build(:dot_jpg)) }
let(:file) { FactoryBot.build(:file, file_type: FactoryGirl.build(:dot_jpg)) }
it 'is an image file icon' do
expect(file_icon).to include('fa-file-image-o')
@ -24,7 +24,7 @@ describe FileTree do
end
context 'for a video file' do
let(:file) { FactoryGirl.build(:file, file_type: FactoryGirl.build(:dot_mp4)) }
let(:file) { FactoryBot.build(:file, file_type: FactoryGirl.build(:dot_mp4)) }
it 'is a video file icon' do
expect(file_icon).to include('fa-file-video-o')
@ -34,7 +34,7 @@ describe FileTree do
context 'for other files' do
context 'for a read-only file' do
let(:file) { FactoryGirl.build(:file, read_only: true) }
let(:file) { FactoryBot.build(:file, read_only: true) }
it 'is a lock icon' do
expect(file_icon).to include('fa-lock')
@ -42,7 +42,7 @@ describe FileTree do
end
context 'for an executable file' do
let(:file) { FactoryGirl.build(:file, file_type: FactoryGirl.build(:dot_py)) }
let(:file) { FactoryBot.build(:file, file_type: FactoryGirl.build(:dot_py)) }
it 'is a code file icon' do
expect(file_icon).to include('fa-file-code-o')
@ -50,7 +50,7 @@ describe FileTree do
end
context 'for a renderable file' do
let(:file) { FactoryGirl.build(:file, file_type: FactoryGirl.build(:dot_svg)) }
let(:file) { FactoryBot.build(:file, file_type: FactoryGirl.build(:dot_svg)) }
it 'is a text file icon' do
expect(file_icon).to include('fa-file-text-o')
@ -58,7 +58,7 @@ describe FileTree do
end
context 'for all other files' do
let(:file) { FactoryGirl.build(:file, file_type: FactoryGirl.build(:dot_md)) }
let(:file) { FactoryBot.build(:file, file_type: FactoryGirl.build(:dot_md)) }
it 'is a generic file icon' do
expect(file_icon).to include('fa-file-o')
@ -75,7 +75,7 @@ describe FileTree do
describe '#initialize' do
let(:file_tree) { described_class.new(files) }
let(:files) { FactoryGirl.build_list(:file, 10, context: nil, path: 'foo/bar/baz') }
let(:files) { FactoryBot.build_list(:file, 10, context: nil, path: 'foo/bar/baz') }
it 'creates a root node' do
expect_any_instance_of(Tree::TreeNode).to receive(:initialize).with(file_tree.send(:root_label))
@ -92,7 +92,7 @@ describe FileTree do
end
describe '#map_to_js_tree' do
let(:file) { FactoryGirl.build(:file) }
let(:file) { FactoryBot.build(:file) }
let(:js_tree) { file_tree.send(:map_to_js_tree, node) }
let!(:leaf) { root.add(Tree::TreeNode.new('', file)) }
let(:root) { Tree::TreeNode.new('', file) }