Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test files refactoring #220

Merged
merged 2 commits into from
Apr 1, 2014

Conversation

abuiles
Copy link
Member

@abuiles abuiles commented Mar 31, 2014

First stab, there are still some things which I'm not quite happy yet, but we can work on that later.

@@ -15,7 +15,7 @@
<link rel='stylesheet' href='assets/app.css'>
<link rel="stylesheet" href='assets/qunit.css'>

<script src='assets/app.js'></script>
<script src='assets/tests.js'></script>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this should be

   <script src='assets/app.js'></script>
   <script src='assets/tests.js'></script>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@twokul
Copy link
Contributor

twokul commented Mar 31, 2014

me is soo jealous @stefanpenner @abuiles

@abuiles
Copy link
Member Author

abuiles commented Apr 1, 2014

@stefanpenner just did the workaround we talked about and let as much to señor resolver.


testsIndexHTML = replace(testsIndexHTML, {
files: ['tests/index.html'],
patterns: [{ match: /\{\{ENV\}\}/g, replacement: getEnvJSON.bind(env)}]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this wasn't introduced by you, but i really dislike this. We should aim to clean this up sometime soon. (before the next release)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with rootURL is that it is needed before any JavaScript files can be loaded: It's used for setting the base tag and the base tag is used by the browser to resolve the relative URL of app.js.

@stefanpenner
Copy link
Contributor

i left 1 actionable comment, can you address and rebase? Then it should be good to go.

@@ -13,9 +13,10 @@
</script>

<link rel='stylesheet' href='assets/app.css'>
<link rel="stylesheet" href='assets/qunit.css'>
<link rel='stylesheet' href='assets/qunit.css'>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You gotta use double quotes in HTML.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh man ^^' I didn't notice that there and I worked on that file only days ago. We NEED to change that there, too. Nobody uses single quotes in HTML. Single quotes are super unconventional. I see that you're really looking very closely :)

@abuiles
Copy link
Member Author

abuiles commented Apr 1, 2014

Updated. Just pending on the double quotes stuff, I thought single quotes was fine on html too.

@@ -4,6 +4,7 @@
* Drops implementation files ([54df0288](https://github.com/twokul/ember-cli/commit/54df0288cd456aec782f0cbda269c603fe7be005))
* Drop boilerplate tests ([c6f7475e](https://github.com/twokul/ember-cli/commit/c6f7475e0c8b3013b4af8ea5139aa25818aedeaf))
* Use named-amd version of `ic-ajax` ([#225](https://github.com/stefanpenner/ember-cli/pull/225))
* Separate `tests` and `app` code. Tests would be under 'assets/tests.js' (#220).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar: Tests are now within 'assets/tests.js'

@abuiles
Copy link
Member Author

abuiles commented Apr 1, 2014

@MajorBreakfast updated again 👍

@MajorBreakfast
Copy link
Contributor

Rebase :) (only one commit, or rather one commit per logical step)

And it would be nice if you could tackle app/index.html as well :)

Thx!

@abuiles
Copy link
Member Author

abuiles commented Apr 1, 2014

@MajorBreakfast rebased and did app/index.html too

@abuiles
Copy link
Member Author

abuiles commented Apr 1, 2014

@MajorBreakfast done, actually the double quotes stuff might belong to a different PR, feel free to go ahead or I'll do it later.

@MajorBreakfast
Copy link
Contributor

Okay :) I'll merge this now.

@MajorBreakfast MajorBreakfast reopened this Apr 1, 2014
MajorBreakfast added a commit that referenced this pull request Apr 1, 2014
@MajorBreakfast MajorBreakfast merged commit f2a9e3d into ember-cli:master Apr 1, 2014
@abuiles abuiles deleted the test-files-refactoring branch April 1, 2014 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants