Rename "Integration" tests to "Acceptance" tests.

The term "Acceptance" seems to have won out everywhere and I don't want
our codebase to be confusing.
This commit is contained in:
Robin Ward 2015-04-06 14:14:00 -04:00
parent da9e2792eb
commit 7aa68eaeab
18 changed files with 38 additions and 21 deletions

View File

@ -14,7 +14,6 @@
"moduleForComponent",
"Pretender",
"sandbox",
"integration",
"controllerFor",
"test",
"ok",

View File

@ -2,8 +2,8 @@
import siteFixtures from 'fixtures/site_fixtures';
function integration(name, options) {
module("Integration: " + name, {
function acceptance(name, options) {
module("Acceptance: " + name, {
setup: function() {
Ember.run(Discourse, Discourse.advanceReadiness);
@ -61,4 +61,4 @@ function fixture(selector) {
return $("#qunit-fixture");
}
export { integration, controllerFor, asyncTestDiscourse, fixture };
export { acceptance, controllerFor, asyncTestDiscourse, fixture };

View File

@ -1,4 +1,5 @@
integration("About");
import { acceptance } from "helpers/qunit-helpers";
acceptance("About");
test("viewing", () => {
visit("/about");

View File

@ -1,4 +1,6 @@
integration("Badges");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Badges");
test("Visit Badge Pages", () => {
visit("/badges");

View File

@ -1,6 +1,6 @@
import { integration } from "helpers/qunit-helpers";
import { acceptance } from "helpers/qunit-helpers";
integration("Create Account - User Fields", {
acceptance("Create Account - User Fields", {
site: {
user_fields: [{"id":34,"name":"I've read the terms of service","field_type":"confirm","required":true},
{"id":35,"name":"What is your pet's name?","field_type":"text","required":true},

View File

@ -1,4 +1,5 @@
integration("Groups");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Groups");
test("Browsing Groups", () => {
visit("/groups/discourse");

View File

@ -1,4 +1,5 @@
integration("Header (Anonymous)");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Header (Anonymous)");
test("header", () => {
visit("/");

View File

@ -1,4 +1,6 @@
integration("Header (Staff)", {
import { acceptance } from "helpers/qunit-helpers";
acceptance("Header (Staff)", {
user: { username: 'test',
staff: true,
site_flagged_posts_count: 1 }

View File

@ -1,4 +1,6 @@
integration("Login Required", {
import { acceptance } from "helpers/qunit-helpers";
acceptance("Login Required", {
settings: {
login_required: true
}

View File

@ -1,4 +1,5 @@
integration("Modal");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Modal");
test("modal", () => {
visit('/');

View File

@ -1,4 +1,5 @@
integration("Signing In");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Signing In");
test("sign in", () => {
visit("/");

View File

@ -1,4 +1,5 @@
integration("Static");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Static");
test("Static Pages", () => {
visit("/faq");

View File

@ -1,4 +1,5 @@
integration("Topic Discovery");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Topic Discovery");
test("Visit Discovery Pages", () => {
visit("/");

View File

@ -1,4 +1,5 @@
integration("View Topic");
import { acceptance } from "helpers/qunit-helpers";
acceptance("View Topic");
test("Enter a Topic", () => {
visit("/t/internationalization-localization/280");

View File

@ -1,4 +1,5 @@
integration("Unknown");
import { acceptance } from "helpers/qunit-helpers";
acceptance("Unknown");
test("Unknown URL", () => {
expect(1);

View File

@ -1,4 +1,5 @@
integration("User Card");
import { acceptance } from "helpers/qunit-helpers";
acceptance("User Card");
test("card", () => {
visit('/');

View File

@ -1,4 +1,5 @@
integration("User");
import { acceptance } from "helpers/qunit-helpers";
acceptance("User");
function hasStream() {
andThen(() => {

View File

@ -1,4 +1,5 @@
integration("User Directory");
import { acceptance } from "helpers/qunit-helpers";
acceptance("User Directory");
test("Visit Page", function() {
visit("/users");