Commit graph

1111 commits

Author SHA1 Message Date
Shaun McDonald
a14419f04f Adding message tests. Adding some international UTF-8 chars for the display name and email address tests. 2008-07-18 16:26:21 +00:00
Shaun McDonald
411445075b some tweaking to the user fixtures so that there is 2 near each other. new users nearby and friends with tests. 2008-07-17 15:08:00 +00:00
Shaun McDonald
0c3f15f5aa new friends with test. Fix to the display name valid tests to make sure that they don't test the length 2008-07-17 11:18:33 +00:00
Shaun McDonald
b931d6f516 testing the display name 2008-07-17 10:44:06 +00:00
Shaun McDonald
9694b977d3 fixing the new display name test 2008-07-15 18:04:35 +00:00
Shaun McDonald
679e59210c Check to see if the e-mail test works 2008-07-15 17:51:26 +00:00
Shaun McDonald
8429c85051 Check to see if the e-mail test works 2008-07-15 16:36:43 +00:00
Shaun McDonald
cf78f3e6dd Can now run tests that use composite_primary_keys in the fixtures. Adding a new test to check that you can't add duplicate user preferences, and the display name of the user is guaranteed to be unique. 2008-07-15 15:51:45 +00:00
Shaun McDonald
c9a171c745 Removing the in_world test from the model since it is included in the geo_record library. Adding visible and version to the nodes and current_nodes fixtures. Adding old node test. Slightly different comparisions. 2008-07-08 18:17:08 +00:00
Shaun McDonald
dce4f18a3e node unit tests with inside limits now. 2008-07-08 15:38:31 +00:00
Tom Hughes
700da2b347 Tidy up a bit after shaun's merge... 2008-07-07 16:16:05 +00:00
Shaun McDonald
64a5e21f53 Fixing the resync that I had done wrong at the end of last week on the nodes. All unit tests now do work. More assertions added. Using a scaling factor as a constant, so that the nodes are stored in the db correctly. Using the same scaling factor in the georecord library, to make code more readable, and reduce errors. Removing duplicate code that is in the GeoRecord include library. 2008-07-07 14:20:27 +00:00
Tom Hughes
36203ebe26 Don't hardcode the API version in the data browser. 2008-07-04 18:15:42 +00:00
Shaun McDonald
5f8ab9e924 Merge changes from trunk 7673:8632. 2008-07-03 13:06:24 +00:00
Shaun McDonald
0a459023d3 Now all the unit tests work 2008-07-03 10:56:17 +00:00
Tom Hughes
08d1f5aaab Quote default when used as a key in a hash as it is a keyword... 2008-06-28 09:59:47 +00:00
Tom Hughes
97aefa23d0 Merge data browser branch to trunk. 2008-06-27 23:09:05 +00:00
Tom Hughes
9a7db5d63b Refactor to remove some code duplication. 2008-06-26 23:01:55 +00:00
Tom Hughes
abb66fa808 Disable the data browswer when the database is not available. 2008-06-26 17:36:21 +00:00
Tom Hughes
563172b2c8 Minor correction to German translation. 2008-06-25 16:46:25 +00:00
Tom Hughes
65ff860da9 Handle international idiots in a reasonable selection of languages. 2008-06-25 15:18:07 +00:00
Tom Hughes
2677593b33 Try and make message and comment notifications more idiot proof. 2008-06-25 14:41:37 +00:00
Tom Hughes
def60c1935 Railsify relation selection (aka ripping out the f***in SQL). 2008-06-24 23:42:39 +00:00
Tom Hughes
398d5fa329 Improve the layout of the object browser views. 2008-06-24 16:44:45 +00:00
Tom Hughes
0cb97bd7d9 Merge 8381:8390 from trunk. 2008-06-22 15:24:12 +00:00
Tom Hughes
cfc14f1ddc Make GeoRecord inject class methods correctly when included. 2008-06-22 15:22:13 +00:00
Tom Hughes
d69a518b9e Merge 8377:8381 from trunk. 2008-06-22 14:46:46 +00:00
Tom Hughes
b72fedb162 Make the polymorphic relation association work properly. 2008-06-22 14:44:34 +00:00
Tom Hughes
960d13488a Merge 7922:8377 from trunk. 2008-06-22 12:23:43 +00:00
Tom Hughes
2cf15b549e Add support for putting the site in an offline mode where it operates
without a database but with most features disabled.
2008-06-22 12:10:32 +00:00
Tom Hughes
b527d27674 Use a polymorphic association to model relation members and add
associations for upward links from objects to relations that they
are a part of.
2008-06-21 17:38:17 +00:00
Tom Hughes
a21824f754 Removed bogus belongs_to user declaration. 2008-06-21 16:19:36 +00:00
Richard Fairhurst
550ebc6c82 trap for #971 until I can work out why it's doing it 2008-06-11 14:45:36 +00:00
Shaun McDonald
955122e412 Replacing the non existant image with a pending text on the trace page 2008-06-10 17:17:32 +00:00
Tom Hughes
7d9bf3634c Work around the fact that exists? no longer works for models with
no primary key.
2008-06-07 22:40:39 +00:00
Tom Hughes
e8293baf8f Let's have one last try... 2008-06-07 00:03:27 +00:00
Tom Hughes
d29defa7cc Magic foo to make composite_primary_keys work. 2008-06-06 23:53:20 +00:00
Tom Hughes
e7346e5903 Go back to rails 2.0.2 for now as 2.1.0 doesn't quite work... 2008-06-06 23:32:21 +00:00
Tom Hughes
4fc6b982dd Switch to rails 2.1.0 release. 2008-06-06 23:17:56 +00:00
Tom Hughes
cdf12b7a33 Don't use comma to separate values in the location cookie, as rails 2.0.2 will
treat comma (as well as semicolon) as a cookie separate. Also change the name
of the location cookie to avoid problems parsing old ones.
2008-06-05 23:27:52 +00:00
Tom Hughes
e2539b7126 Switch to rails 2.0.2 as Debian/Ubuntu is able to handle it now. 2008-06-05 23:06:29 +00:00
Tom Hughes
91bcc44021 Make sure the diary tab always links to the global diary rather than
a specific user's diary. Closes #956.
2008-06-05 21:20:30 +00:00
Shaun McDonald
98e11d164f Removing id's so that the ids are generated, and it makes it easier to deal with referential tests. Now have messages and users with basic tests. Using http://api.rubyonrails.com/classes/Fixtures.html. 2008-06-04 16:35:00 +00:00
Shaun McDonald
f58fb85e03 improved messages fixtures. Additional user fixture (for sending messages between the users). Checking that an empty message fails. 2008-06-04 06:48:49 +00:00
Tom Hughes
2829bf79d0 Cope with not having a layer configuration at all. 2008-06-03 15:12:46 +00:00
Shaun McDonald
abb93de627 Adding some additional node fixtures to test edge cases. Having a bit of an issue as the too far north and south tests aren't working as expected, even so the too far east and west ones are. 2008-06-02 17:27:32 +00:00
Shaun McDonald
f97c16d5c4 You can now test nodes. This test needs looked at again, as it currently doesn't test the node tags 2008-06-02 15:28:03 +00:00
Shaun McDonald
b8a7d956bf Fixing indentation 2008-06-02 15:22:17 +00:00
Shaun McDonald
0c2d503f1e Fixing indentation 2008-06-02 15:13:29 +00:00
Tom Hughes
c25a20ff13 Don't try and parse an empty string as a layer config, and cope a bit
better if we do hit the end of the string. Closes #942.
2008-06-02 12:45:24 +00:00