Skip to content

Commit

Permalink
Repair travis
Browse files Browse the repository at this point in the history
(cherry picked from commit 9a5b3a4)
  • Loading branch information
stephanenicolas committed Jul 21, 2014
1 parent ecd4765 commit 209b174
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ android:
script:
- echo "Travis branch is $TRAVIS_BRANCH"
- echo "Travis branch is in pull request $TRAVIS_PULL+REQUEST"
- mvn clean install -P!guice
- mvn clean install
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Astroboy1Test {
public void setup() {
RoboGuice.setUseAnnotationDatabases(false);
context = Robolectric.buildActivity(RoboActivity.class).create().get();
astroboy = RoboGuice.createInjector(context).getInstance(Astroboy.class);
astroboy = RoboGuice.getInjector(context).getInstance(Astroboy.class);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void teardown() {
public void brushingTeethShouldCausePhoneToVibrate() {

// get the astroboy instance
final Astroboy astroboy = RoboGuice.createInjector(context).getInstance(Astroboy.class);
final Astroboy astroboy = RoboGuice.getInjector(context).getInstance(Astroboy.class);

// do the thing
astroboy.brushTeeth();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void teardown() {
public void brushingTeethShouldCausePhoneToVibrate() {

// get the astroboy instance
final Astroboy astroboy = RoboGuice.createInjector(Robolectric.application).getInstance(Astroboy.class);
final Astroboy astroboy = RoboGuice.getInjector(Robolectric.application).getInstance(Astroboy.class);

// do the thing
astroboy.brushTeeth();
Expand Down

0 comments on commit 209b174

Please sign in to comment.