Skip to content

Commit

Permalink
Tidying up.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Campbell committed Dec 1, 2015
1 parent 4f6ab1e commit 693fffe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions spec/generator/build_phase_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ module Generator
describe BuildPhase do

before :each do
@main_group = double("Main Group")
@main_group = double("Main Group")

@project = double("Project")
allow(@project).to receive(:main_group).and_return(@main_group)
@project = double("Project")
allow(@project).to receive(:main_group).and_return(@main_group)

@node = double("Node").as_null_object
@build_phase = BuildPhase.new(@project)
@node = double("Node").as_null_object
@build_phase = BuildPhase.new(@project)
end

it "should be able to install node" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generator/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Generator
describe Configuration do

before :each do
@xcode_build_configuration = double("Xcode Build configuration").as_null_object
@xcode_build_configuration = double("XCBuildConfiguration").as_null_object
@project = double("Project")

@configuration_target = double("Configuration Target").as_null_object
Expand Down
3 changes: 1 addition & 2 deletions spec/generator/target_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ module Generator
end

context 'when visiting a target' do

#TODO: Refactor
# TODO: Refactor
it "should create a new target" do
target = double("Target").as_null_object
expect(@project).to receive(:new_target).with(target)
Expand Down

0 comments on commit 693fffe

Please sign in to comment.