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", "moduleForComponent",
"Pretender", "Pretender",
"sandbox", "sandbox",
"integration",
"controllerFor", "controllerFor",
"test", "test",
"ok", "ok",

View File

@ -2,8 +2,8 @@
import siteFixtures from 'fixtures/site_fixtures'; import siteFixtures from 'fixtures/site_fixtures';
function integration(name, options) { function acceptance(name, options) {
module("Integration: " + name, { module("Acceptance: " + name, {
setup: function() { setup: function() {
Ember.run(Discourse, Discourse.advanceReadiness); Ember.run(Discourse, Discourse.advanceReadiness);
@ -61,4 +61,4 @@ function fixture(selector) {
return $("#qunit-fixture"); 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", () => { test("viewing", () => {
visit("/about"); visit("/about");

View File

@ -1,4 +1,6 @@
integration("Badges"); import { acceptance } from "helpers/qunit-helpers";
acceptance("Badges");
test("Visit Badge Pages", () => { test("Visit Badge Pages", () => {
visit("/badges"); 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: { site: {
user_fields: [{"id":34,"name":"I've read the terms of service","field_type":"confirm","required":true}, 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}, {"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", () => { test("Browsing Groups", () => {
visit("/groups/discourse"); visit("/groups/discourse");

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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