Skip to content

Commit

Permalink
Merge pull request #54 from robospock/package_rename
Browse files Browse the repository at this point in the history
Package rename
  • Loading branch information
pelotasplus committed Oct 27, 2015
2 parents 0213638 + 7e1dfec commit 64b88b1
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 13 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.9.0-SNAPSHOT
version=1.0.0

artifactId=robospock
group=org.robospock
Expand Down
3 changes: 1 addition & 2 deletions robospock/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ sourceSets {
}

dependencies {
compile "org.codehaus.groovy:groovy-all:2.3.8"
compile "org.spockframework:spock-core:0.7-groovy-2.0"
compile "org.spockframework:spock-core:1.0-groovy-2.4"

// Android part
compile "org.robolectric:robolectric:3.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.robospock

import org.junit.runner.RunWith
import org.robospock.internal.GradleRoboSputnik
import spock.lang.Specification

@RunWith(GradleRoboSputnik)
class GradleRoboSpecification extends Specification {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.robospock

import org.junit.runner.RunWith
import org.robospock.internal.RoboSputnik
import spock.lang.Specification

@RunWith(RoboSputnik)
class RoboSpecification extends Specification {}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package pl.polidea.robospock

import org.junit.runner.RunWith
import pl.polidea.robospock.internal.GradleRoboSputnik
import org.robospock.internal.GradleRoboSputnik
import spock.lang.Specification


@RunWith(GradleRoboSputnik)
@Deprecated
class GradleRoboSpecification extends Specification {
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package pl.polidea.robospock

import org.junit.runner.RunWith
import pl.polidea.robospock.internal.RoboSputnik
import org.robospock.internal.RoboSputnik
import spock.lang.Specification

@RunWith(RoboSputnik)
@Deprecated
class RoboSpecification extends Specification {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pl.polidea.robospock.internal;
package org.robospock.internal;

import org.junit.runners.model.InitializationError;
import org.robolectric.annotation.Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pl.polidea.robospock.internal;
package org.robospock.internal;

import android.app.Application;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pl.polidea.robospock.internal;
package org.robospock.internal;

import android.app.Application;
import android.os.Build;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pl.polidea.robospock.internal;
package org.robospock.internal;

import org.jetbrains.annotations.NotNull;
import org.junit.runner.Description;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package pl.polidea.robospock.test.integration
package org.robospock.test.integration

import android.app.Activity
import org.robolectric.Robolectric
import pl.polidea.robospock.RoboSpecification
import org.robospock.RoboSpecification
import spock.lang.Unroll

class ActivityCreationTest extends RoboSpecification {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.example.robospock.activity.MainActivity
import com.example.robospock.shadow.MyActivityManagerShadow
import org.robolectric.Robolectric
import org.robolectric.annotation.Config
import pl.polidea.robospock.GradleRoboSpecification
import org.robospock.GradleRoboSpecification

@Config(shadows = [MyActivityManagerShadow], constants = BuildConfig)
class DefaultSpec extends GradleRoboSpecification {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.example.robospock.activity.MainActivity
import com.example.robospock.shadow.MyActivityManagerShadow
import org.robolectric.Robolectric
import org.robolectric.annotation.Config
import pl.polidea.robospock.RoboSpecification
import org.robospock.RoboSpecification

@Config(shadows = [MyActivityManagerShadow], manifest = "src/main/AndroidManifest.xml")
class ShadowSpec extends RoboSpecification {
Expand Down

0 comments on commit 64b88b1

Please sign in to comment.